From e7fc0e401338c68f4793ac91a84d88c03972627a Mon Sep 17 00:00:00 2001 From: Adyen Automation Date: Thu, 20 Mar 2025 16:09:16 +0100 Subject: [PATCH] spec release --- ...BalancePlatformBalanceNotification-v1.json | 195 + ...ePlatformConfigurationNotification-v1.json | 1 + ...ePlatformConfigurationNotification-v2.json | 1 + json/BalancePlatformService-v2.json | 28051 ++++++++-------- ...BalancePlatformBalanceNotification-v1.yaml | 166 + ...ePlatformConfigurationNotification-v1.yaml | 1 + ...ePlatformConfigurationNotification-v2.yaml | 1 + yaml/BalancePlatformService-v2.yaml | 7352 ++-- 8 files changed, 18230 insertions(+), 17538 deletions(-) create mode 100644 json/BalancePlatformBalanceNotification-v1.json create mode 100644 yaml/BalancePlatformBalanceNotification-v1.yaml diff --git a/json/BalancePlatformBalanceNotification-v1.json b/json/BalancePlatformBalanceNotification-v1.json new file mode 100644 index 0000000..ff3a754 --- /dev/null +++ b/json/BalancePlatformBalanceNotification-v1.json @@ -0,0 +1,195 @@ +{ + "openapi" : "3.1.0", + "info" : { + "title" : "Balance webhook", + "description" : "Adyen sends webhooks to inform you of balance changes in your balance platform.\n\nYou can use the [Configuration API](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/(id)/webhooks/(id)/settings) to set the conditions that a balance change must meet for Adyen to send a balance webhook:\n\n- In your entire balance platform\n- In the balance accounts of specific account holders\n- In a specific balance account", + "termsOfService" : "https://www.adyen.com/legal/terms-and-conditions", + "contact" : { + "name" : "Adyen Developer Experience team", + "url" : "https://github.com/Adyen/adyen-openapi" + }, + "version" : "1", + "x-timestamp" : "2025-03-20T15:36:19Z" + }, + "tags" : [ { + "name" : "balancePlatform.balanceAccount.balance.updated" + }, { + "name" : "Balances" + } ], + "webhooks" : { + "balanceAccount.balance.updated" : { + "post" : { + "tags" : [ "Balances" ], + "summary" : "Balance updated", + "description" : "Adyen sends this webhook when the specified balance type reaches or drops below the threshold you configured.", + "operationId" : "post-balanceAccount.balance.updated", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BalanceAccountBalanceNotificationRequest" + }, + "examples" : { + "balance-updated" : { + "summary" : "Balance changed", + "description" : "Balance changed", + "value" : { + "data" : { + "settingIds" : "BWHS00000000000000000000000001", + "creationDate" : "2025-01-19T13:37:38+02:00", + "balancePlatform" : "YOUR_BALANCE_PLATFORM", + "currency" : "USD", + "balances" : { + "available" : 499900, + "pending" : 350000, + "reserved" : 120000, + "balance" : 470000 + } + }, + "environment" : "test", + "type" : "balancePlatform.balanceAccount.balance.updated" + } + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BalancePlatformNotificationResponse" + }, + "examples" : { + "balance-updated" : { + "summary" : "Acknowledge webhook", + "description" : "Acknowledge webhook", + "value" : { + "notificationResponse" : "[accepted]" + } + } + } + } + } + } + }, + "x-sortIndex" : 0 + } + } + }, + "components" : { + "schemas" : { + "BalancePlatformNotificationResponse" : { + "type" : "object", + "properties" : { + "notificationResponse" : { + "type" : "string", + "description" : "Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications)." + } + } + }, + "BalanceAccountBalanceNotificationRequest" : { + "required" : [ "data", "environment", "type" ], + "type" : "object", + "properties" : { + "data" : { + "description" : "Contains event details.", + "$ref" : "#/components/schemas/BalanceNotificationData" + }, + "environment" : { + "type" : "string", + "description" : "The environment from which the webhook originated.\n\nPossible values: **test**, **live**." + }, + "timestamp" : { + "type" : "string", + "description" : "When the event was queued.", + "format" : "date-time" + }, + "type" : { + "type" : "string", + "description" : "Type of webhook.", + "enum" : [ "balancePlatform.balanceAccount.balance.updated" ] + } + } + }, + "BalanceNotificationData" : { + "required" : [ "balanceAccountId", "balances", "currency", "settingIds" ], + "type" : "object", + "properties" : { + "balanceAccountId" : { + "type" : "string", + "description" : "The unique identifier of the balance account." + }, + "balancePlatform" : { + "type" : "string", + "description" : "The unique identifier of the balance platform." + }, + "balances" : { + "description" : "The list balance types.", + "$ref" : "#/components/schemas/Balances" + }, + "creationDate" : { + "type" : "string", + "description" : "The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.", + "format" : "date-time" + }, + "currency" : { + "type" : "string", + "description" : "TThe three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes)." + }, + "id" : { + "type" : "string", + "description" : "The ID of the resource.", + "readOnly" : true + }, + "settingIds" : { + "type" : "array", + "description" : "The unique identifier of the balance webhook setting.", + "items" : { + "type" : "string" + } + } + } + }, + "Balances" : { + "type" : "object", + "properties" : { + "available" : { + "type" : "integer", + "description" : "The balance that is available for use.", + "format" : "int64" + }, + "balance" : { + "type" : "integer", + "description" : "The sum of transactions that have already been settled.", + "format" : "int64" + }, + "pending" : { + "type" : "integer", + "description" : "The sum of transactions that will be settled in the future.", + "format" : "int64" + }, + "reserved" : { + "type" : "integer", + "description" : "The balance currently held in reserve.", + "format" : "int64" + } + } + } + }, + "securitySchemes" : { + "ApiKeyAuth" : { + "type" : "apiKey", + "name" : "X-API-Key", + "in" : "header" + }, + "BasicAuth" : { + "type" : "http", + "scheme" : "basic" + } + } + }, + "jsonSchemaDialect" : "https://spec.openapis.org/oas/3.1/dialect/base" +} \ No newline at end of file diff --git a/json/BalancePlatformConfigurationNotification-v1.json b/json/BalancePlatformConfigurationNotification-v1.json index 27bb11c..d8d75fa 100644 --- a/json/BalancePlatformConfigurationNotification-v1.json +++ b/json/BalancePlatformConfigurationNotification-v1.json @@ -1906,6 +1906,7 @@ "directDebitNotSupported", "error", "notEnoughBalance", + "pending", "pendingApproval", "pendingExecution", "refusedByCounterpartyBank", diff --git a/json/BalancePlatformConfigurationNotification-v2.json b/json/BalancePlatformConfigurationNotification-v2.json index d2c4867..4932667 100644 --- a/json/BalancePlatformConfigurationNotification-v2.json +++ b/json/BalancePlatformConfigurationNotification-v2.json @@ -1972,6 +1972,7 @@ "directDebitNotSupported", "error", "notEnoughBalance", + "pending", "pendingApproval", "pendingExecution", "refusedByCounterpartyBank", diff --git a/json/BalancePlatformService-v2.json b/json/BalancePlatformService-v2.json index 1f12ab3..e19d662 100644 --- a/json/BalancePlatformService-v2.json +++ b/json/BalancePlatformService-v2.json @@ -1,14407 +1,13736 @@ { - "openapi" : "3.1.0", - "servers" : [ - { - "url" : "https://balanceplatform-api-test.adyen.com/bcl/v2" + "openapi" : "3.1.0", + "info" : { + "title" : "Configuration API", + "description" : "The Configuration API allows you to manage your balance platform where you can create account holders, balance accounts, cards, and business accounts.\n\n## Authentication\nEach request to the Configuration API must be signed with an API key. Generate an API key in your Customer Area if you have a [platform setup](https://docs.adyen.com/platforms/manage-access/api-credentials-web-service/#generate-api-key) or [marketplace setup](https://docs.adyen.com/marketplaces/manage-access/api-credentials-web-service/#generate-api-key).\n\n If you have an Adyen Issuing integration, [generate an API key](https://docs.adyen.com/issuing/manage-access/api-credentials-web-service/#generate-api-key) in your Balance Platform Customer Area.\n\nTo connect to the API, add an `X-API-Key` header with the API key as the value, for example:\n\n ```\ncurl\n-H \"Content-Type: application/json\" \\\n-H \"X-API-Key: YOUR_API_KEY\" \\\n...\n```\n\n## Versioning\nThe Configuration API supports [versioning](https://docs.adyen.com/development-resources/versioning) using a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number.\n\nFor example:\n```\nhttps://balanceplatform-api-test.adyen.com/bcl/v2/accountHolders\n```\n## Going live\nWhen going live, generate an API key in your [live Customer Area](https://ca-live.adyen.com/ca/) if you have an Adyen for Platforms integration or [live Balance Platform Customer Area](https://balanceplatform-live.adyen.com/balanceplatform/) if you have an Adyen Issuing integration.You can then use the API key to send requests to `https://balanceplatform-api-live.adyen.com/bcl/v2`.", + "termsOfService" : "https://www.adyen.com/legal/terms-and-conditions", + "contact" : { + "name" : "Adyen Developer Experience team", + "url" : "https://github.com/Adyen/adyen-openapi" + }, + "version" : "2", + "x-publicVersion" : true + }, + "servers" : [ { + "url" : "https://balanceplatform-api-test.adyen.com/bcl/v2" + } ], + "tags" : [ { + "name" : "Platform" + }, { + "name" : "Account holders" + }, { + "name" : "Balance accounts" + }, { + "name" : "Balances" + }, { + "name" : "Payment instruments" + }, { + "name" : "Payment instrument groups" + }, { + "name" : "Transaction rules" + }, { + "name" : "Bank account validation" + }, { + "name" : "Network tokens" + }, { + "name" : "Grant accounts" + }, { + "name" : "Grant offers" + }, { + "name" : "Card orders" + }, { + "name" : "Manage card PIN" + }, { + "name" : "Transfer routes" + }, { + "name" : "SCA device management" + }, { + "name" : "Manage SCA devices" + } ], + "paths" : { + "/accountHolders" : { + "post" : { + "tags" : [ "Account holders" ], + "summary" : "Create an account holder", + "description" : "Creates an account holder linked to a [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities).\n\n", + "operationId" : "post-accountHolders", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AccountHolderInfo" + }, + "examples" : { + "createAccountHolder" : { + "$ref" : "#/components/examples/post-accountHolders-createAccountHolder" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AccountHolder" + }, + "examples" : { + "createAccountHolder" : { + "$ref" : "#/components/examples/post-accountHolders-createAccountHolder-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 1, + "x-methodName" : "createAccountHolder" } - ], - "info" : { - "version" : "2", - "x-publicVersion" : true, - "title" : "Configuration API", - "description" : "The Configuration API allows you to manage your balance platform where you can create account holders, balance accounts, cards, and business accounts.\n\n## Authentication\nEach request to the Configuration API must be signed with an API key. Generate an API key in your Customer Area if you have a [platform setup](https://docs.adyen.com/platforms/manage-access/api-credentials-web-service/#generate-api-key) or [marketplace setup](https://docs.adyen.com/marketplaces/manage-access/api-credentials-web-service/#generate-api-key).\n\n If you have an Adyen Issuing integration, [generate an API key](https://docs.adyen.com/issuing/manage-access/api-credentials-web-service/#generate-api-key) in your Balance Platform Customer Area.\n\nTo connect to the API, add an `X-API-Key` header with the API key as the value, for example:\n\n ```\ncurl\n-H \"Content-Type: application/json\" \\\n-H \"X-API-Key: YOUR_API_KEY\" \\\n...\n```\n\n## Versioning\nThe Configuration API supports [versioning](https://docs.adyen.com/development-resources/versioning) using a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number.\n\nFor example:\n```\nhttps://balanceplatform-api-test.adyen.com/bcl/v2/accountHolders\n```\n## Going live\nWhen going live, generate an API key in your [live Customer Area](https://ca-live.adyen.com/ca/) if you have an Adyen for Platforms integration or [live Balance Platform Customer Area](https://balanceplatform-live.adyen.com/balanceplatform/) if you have an Adyen Issuing integration.You can then use the API key to send requests to `https://balanceplatform-api-live.adyen.com/bcl/v2`.", - "termsOfService" : "https://www.adyen.com/legal/terms-and-conditions", - "contact" : { - "name" : "Adyen Developer Experience team", - "url" : "https://github.com/Adyen/adyen-openapi" + }, + "/accountHolders/{id}" : { + "get" : { + "tags" : [ "Account holders" ], + "summary" : "Get an account holder", + "description" : "Returns an account holder.", + "operationId" : "get-accountHolders-id", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the account holder.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AccountHolder" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-accountHolders-id-success-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 3, + "x-methodName" : "getAccountHolder" + }, + "patch" : { + "tags" : [ "Account holders" ], + "summary" : "Update an account holder", + "description" : "Updates an account holder. When updating an account holder resource, if a parameter is not provided in the request, it is left unchanged.", + "operationId" : "patch-accountHolders-id", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the account holder.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AccountHolderUpdateRequest" + }, + "examples" : { + "requestAccountHolderCapability" : { + "$ref" : "#/components/examples/patch-accountHolders-id-requestAccountHolderCapability" + }, + "updateAccountHolderStatus" : { + "$ref" : "#/components/examples/patch-accountHolders-id-updateAccountHolderStatus" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AccountHolder" + }, + "examples" : { + "requestAccountHolderCapability" : { + "$ref" : "#/components/examples/patch-accountHolders-id-requestAccountHolderCapability-200" + }, + "updateAccountHolderStatus" : { + "$ref" : "#/components/examples/patch-accountHolders-id-updateAccountHolderStatus-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 2, + "x-methodName" : "updateAccountHolder" } - }, - "tags" : [ - { - "name" : "Platform" - }, - { - "name" : "Account holders" - }, - { - "name" : "Balance accounts" - }, - { - "name" : "Payment instruments" - }, - { - "name" : "Payment instrument groups" - }, - { - "name" : "Transaction rules" - }, - { - "name" : "Bank account validation" - }, - { - "name" : "Network tokens" - }, - { - "name" : "Grant accounts" - }, - { - "name" : "Grant offers" - }, - { - "name" : "Card orders" - }, - { - "name" : "Manage card PIN" - }, - { - "name" : "Transfer routes" - }, - { - "name" : "SCA device management" - }, - { - "name" : "Manage SCA devices" + }, + "/accountHolders/{id}/balanceAccounts" : { + "get" : { + "tags" : [ "Account holders" ], + "summary" : "Get all balance accounts of an account holder", + "description" : "Returns a paginated list of the balance accounts associated with an account holder. To fetch multiple pages, use the query parameters. \n\nFor example, to limit the page to 5 balance accounts and skip the first 10, use `/accountHolders/{id}/balanceAccounts?limit=5&offset=10`.", + "operationId" : "get-accountHolders-id-balanceAccounts", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the account holder.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "offset", + "in" : "query", + "description" : "The number of items that you want to skip.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "limit", + "in" : "query", + "description" : "The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaginatedBalanceAccountsResponse" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-accountHolders-id-balanceAccounts-success-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 4, + "x-methodName" : "getAllBalanceAccountsOfAccountHolder" } - ], - "paths" : { - "/accountHolders" : { - "post" : { - "tags" : [ - "Account holders" - ], - "summary" : "Create an account holder", - "description" : "Creates an account holder linked to a [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities).\n\n", - "x-addedInVersion" : "1", - "operationId" : "post-accountHolders", - "x-sortIndex" : 1, - "x-methodName" : "createAccountHolder", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "examples" : { - "createAccountHolder" : { - "$ref" : "#/components/examples/post-accountHolders-createAccountHolder" - } - }, - "schema" : { - "$ref" : "#/components/schemas/AccountHolderInfo" - } + }, + "/accountHolders/{id}/taxForms" : { + "get" : { + "tags" : [ "Account holders" ], + "summary" : "Get a tax form", + "description" : "Generates a tax form for account holders operating in the US. For more information, refer to US tax forms for [marketplaces](https://docs.adyen.com/marketplaces/us-tax-forms/) or [platforms](https://docs.adyen.com/platforms/us-tax-forms/) .", + "operationId" : "get-accountHolders-id-taxForms", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the account holder.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "formType", + "in" : "query", + "description" : "The type of tax form you want to retrieve. Accepted values are **US1099k** and **US1099nec**", + "required" : true, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "enum" : [ "US1099k", "US1099nec" ], + "x-enum" : [ { + "value" : "US1099k" + }, { + "value" : "US1099nec" + } ] + } + }, { + "name" : "year", + "in" : "query", + "description" : "The tax year in YYYY format for the tax form you want to retrieve", + "required" : true, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetTaxFormResponse" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-accountHolders-id-taxForms-success-200" } - } - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "createAccountHolder" : { - "$ref" : "#/components/examples/post-accountHolders-createAccountHolder-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/AccountHolder" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } + } + } } - } - }, - "/accountHolders/{id}" : { - "get" : { - "tags" : [ - "Account holders" - ], - "summary" : "Get an account holder", - "description" : "Returns an account holder.", - "x-addedInVersion" : "1", - "operationId" : "get-accountHolders-id", - "x-sortIndex" : 3, - "x-methodName" : "getAccountHolder", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the account holder.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-accountHolders-id-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/AccountHolder" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } + } + } } - }, - "patch" : { - "tags" : [ - "Account holders" - ], - "summary" : "Update an account holder", - "description" : "Updates an account holder. When updating an account holder resource, if a parameter is not provided in the request, it is left unchanged.", - "x-addedInVersion" : "1", - "operationId" : "patch-accountHolders-id", - "x-sortIndex" : 2, - "x-methodName" : "updateAccountHolder", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "examples" : { - "requestAccountHolderCapability" : { - "$ref" : "#/components/examples/patch-accountHolders-id-requestAccountHolderCapability" - }, - "updateAccountHolderStatus" : { - "$ref" : "#/components/examples/patch-accountHolders-id-updateAccountHolderStatus" - } - }, - "schema" : { - "$ref" : "#/components/schemas/AccountHolderUpdateRequest" - } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" } - } - }, - "parameters" : [ - { - "description" : "The unique identifier of the account holder.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "requestAccountHolderCapability" : { - "$ref" : "#/components/examples/patch-accountHolders-id-requestAccountHolderCapability-200" - }, - "updateAccountHolderStatus" : { - "$ref" : "#/components/examples/patch-accountHolders-id-updateAccountHolderStatus-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/AccountHolder" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } + } + } } - } - }, - "/accountHolders/{id}/balanceAccounts" : { - "get" : { - "tags" : [ - "Account holders" - ], - "summary" : "Get all balance accounts of an account holder", - "description" : "Returns a paginated list of the balance accounts associated with an account holder. To fetch multiple pages, use the query parameters. \n\nFor example, to limit the page to 5 balance accounts and skip the first 10, use `/accountHolders/{id}/balanceAccounts?limit=5&offset=10`.", - "x-addedInVersion" : "1", - "operationId" : "get-accountHolders-id-balanceAccounts", - "x-sortIndex" : 4, - "x-methodName" : "getAllBalanceAccountsOfAccountHolder", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the account holder.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" } - }, - { - "description" : "The number of items that you want to skip.", - "name" : "offset", - "in" : "query", - "required" : false, - "schema" : { - "format" : "int32", - "type" : "integer" - } - }, - { - "description" : "The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page.", - "name" : "limit", - "in" : "query", - "required" : false, - "schema" : { - "format" : "int32", - "type" : "integer" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-accountHolders-id-balanceAccounts-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PaginatedBalanceAccountsResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } + } + } } - } - }, - "/accountHolders/{id}/taxForms" : { - "get" : { - "tags" : [ - "Account holders" - ], - "summary" : "Get a tax form", - "description" : "Generates a tax form for account holders operating in the US. For more information, refer to US tax forms for [marketplaces](https://docs.adyen.com/marketplaces/us-tax-forms/) or [platforms](https://docs.adyen.com/platforms/us-tax-forms/) .", - "x-addedInVersion" : "2", - "operationId" : "get-accountHolders-id-taxForms", - "x-sortIndex" : 5, - "x-methodName" : "getTaxForm", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the account holder.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" } - }, - { - "description" : "The type of tax form you want to retrieve. Accepted values are **US1099k** and **US1099nec**", - "name" : "formType", - "in" : "query", - "required" : true, - "schema" : { - "x-enum" : [ - { - "value" : "US1099k" - }, - { - "value" : "US1099nec" - } - ], - "enum" : [ - "US1099k", - "US1099nec" - ], - "type" : "string" - } - }, - { - "description" : "The tax year in YYYY format for the tax form you want to retrieve", - "name" : "year", - "in" : "query", - "required" : true, - "schema" : { - "format" : "int32", - "type" : "integer" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-accountHolders-id-taxForms-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/GetTaxFormResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } + } + } } - } - }, - "/accountHolders/{id}/transactionRules" : { - "get" : { - "tags" : [ - "Account holders" - ], - "summary" : "Get all transaction rules for an account holder", - "description" : "Returns a list of transaction rules associated with an account holder.", - "x-addedInVersion" : "1", - "operationId" : "get-accountHolders-id-transactionRules", - "x-sortIndex" : 18, - "x-methodName" : "getAllTransactionRulesForAccountHolder", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the account holder.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/TransactionRulesResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } + } + } } - } - }, - "/balanceAccounts" : { - "post" : { - "tags" : [ - "Balance accounts" - ], - "summary" : "Create a balance account", - "description" : "Creates a balance account that holds the funds of the associated account holder.", - "x-addedInVersion" : "1", - "operationId" : "post-balanceAccounts", - "x-sortIndex" : 1, - "x-methodName" : "createBalanceAccount", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "examples" : { - "createBalanceAccount" : { - "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccount" - }, - "createBalanceAccountCAD" : { - "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccountCAD" - }, - "createBalanceAccountGBP" : { - "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccountGBP" - }, - "createBalanceAccountUSD" : { - "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccountUSD" - } - }, - "schema" : { - "$ref" : "#/components/schemas/BalanceAccountInfo" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "createBalanceAccount" : { - "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccount-200" - }, - "createBalanceAccountCAD" : { - "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccountCAD-200" - }, - "createBalanceAccountGBP" : { - "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccountGBP-200" - }, - "createBalanceAccountUSD" : { - "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccountUSD-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/BalanceAccount" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/balanceAccounts/{balanceAccountId}/sweeps" : { - "get" : { - "tags" : [ - "Balance accounts" - ], - "summary" : "Get all sweeps for a balance account", - "description" : "Returns a list of the sweeps configured for a balance account.\n\nTo fetch multiple pages, use the query parameters. For example, to limit the page to 5 sweeps and to skip the first 10, use `/balanceAccounts/{balanceAccountId}/sweeps?limit=5&offset=10`.", - "x-addedInVersion" : "2", - "operationId" : "get-balanceAccounts-balanceAccountId-sweeps", - "x-sortIndex" : 7, - "x-methodName" : "getAllSweepsForBalanceAccount", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the balance account.", - "name" : "balanceAccountId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "description" : "The number of items that you want to skip.", - "name" : "offset", - "in" : "query", - "required" : false, - "schema" : { - "format" : "int32", - "type" : "integer" - } - }, - { - "description" : "The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page.", - "name" : "limit", - "in" : "query", - "required" : false, - "schema" : { - "format" : "int32", - "type" : "integer" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-balanceAccounts-balanceAccountId-sweeps-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/BalanceSweepConfigurationsResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - }, - "post" : { - "tags" : [ - "Balance accounts" - ], - "summary" : "Create a sweep", - "description" : "Creates a sweep that results in moving funds from or to a balance account.\n\nA sweep pulls in or pushes out funds based on a defined schedule, amount, currency, and a source or a destination.", - "x-addedInVersion" : "2", - "operationId" : "post-balanceAccounts-balanceAccountId-sweeps", - "x-sortIndex" : 5, - "x-methodName" : "createSweep", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "examples" : { - "createSweep-pull" : { - "$ref" : "#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-pull" - }, - "createSweep-push" : { - "$ref" : "#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-push" - }, - "createSweep-push-priorities" : { - "$ref" : "#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-push-priorities" - } - }, - "schema" : { - "$ref" : "#/components/schemas/CreateSweepConfigurationV2" - } - } - } - }, - "parameters" : [ - { - "description" : "The unique identifier of the balance account.", - "name" : "balanceAccountId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "createSweep-pull" : { - "$ref" : "#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-pull-200" - }, - "createSweep-push" : { - "$ref" : "#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-push-200" - }, - "createSweep-push-priorities" : { - "$ref" : "#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-push-priorities-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/SweepConfigurationV2" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}" : { - "delete" : { - "tags" : [ - "Balance accounts" - ], - "summary" : "Delete a sweep", - "description" : "Deletes a sweep for a balance account.", - "x-addedInVersion" : "2", - "operationId" : "delete-balanceAccounts-balanceAccountId-sweeps-sweepId", - "x-sortIndex" : 9, - "x-methodName" : "deleteSweep", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the balance account.", - "name" : "balanceAccountId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "description" : "The unique identifier of the sweep.", - "name" : "sweepId", - "in" : "path", - "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" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - }, - "get" : { - "tags" : [ - "Balance accounts" - ], - "summary" : "Get a sweep", - "description" : "Returns a sweep.", - "x-addedInVersion" : "2", - "operationId" : "get-balanceAccounts-balanceAccountId-sweeps-sweepId", - "x-sortIndex" : 8, - "x-methodName" : "getSweep", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the balance account.", - "name" : "balanceAccountId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "description" : "The unique identifier of the sweep.", - "name" : "sweepId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-balanceAccounts-balanceAccountId-sweeps-sweepId-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/SweepConfigurationV2" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - }, - "patch" : { - "tags" : [ - "Balance accounts" - ], - "summary" : "Update a sweep", - "description" : "Updates a sweep. When updating a sweep resource, note that if a request parameter is not provided, the parameter is left unchanged.", - "x-addedInVersion" : "2", - "operationId" : "patch-balanceAccounts-balanceAccountId-sweeps-sweepId", - "x-sortIndex" : 6, - "x-methodName" : "updateSweep", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "examples" : { - "updateSweep-status" : { - "$ref" : "#/components/examples/patch-balanceAccounts-balanceAccountId-sweeps-sweepId-updateSweep-status" - } - }, - "schema" : { - "$ref" : "#/components/schemas/UpdateSweepConfigurationV2" - } - } - } - }, - "parameters" : [ - { - "description" : "The unique identifier of the balance account.", - "name" : "balanceAccountId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "description" : "The unique identifier of the sweep.", - "name" : "sweepId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "updateSweep-status" : { - "$ref" : "#/components/examples/patch-balanceAccounts-balanceAccountId-sweeps-sweepId-updateSweep-status-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/SweepConfigurationV2" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/balanceAccounts/{id}" : { - "get" : { - "tags" : [ - "Balance accounts" - ], - "summary" : "Get a balance account", - "description" : "Returns a balance account and its balances for the default currency and other currencies with a non-zero balance.", - "x-addedInVersion" : "1", - "operationId" : "get-balanceAccounts-id", - "x-sortIndex" : 3, - "x-methodName" : "getBalanceAccount", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the balance account.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-balanceAccounts-id-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/BalanceAccount" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - }, - "patch" : { - "tags" : [ - "Balance accounts" - ], - "summary" : "Update a balance account", - "description" : "Updates a balance account.", - "x-addedInVersion" : "1", - "operationId" : "patch-balanceAccounts-id", - "x-sortIndex" : 2, - "x-methodName" : "updateBalanceAccount", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "examples" : { - "updateBalanceAccount" : { - "$ref" : "#/components/examples/patch-balanceAccounts-id-updateBalanceAccount" - } - }, - "schema" : { - "$ref" : "#/components/schemas/BalanceAccountUpdateRequest" - } - } - } - }, - "parameters" : [ - { - "description" : "The unique identifier of the balance account.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "updateBalanceAccount" : { - "$ref" : "#/components/examples/patch-balanceAccounts-id-updateBalanceAccount-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/BalanceAccount" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/balanceAccounts/{id}/paymentInstruments" : { - "get" : { - "tags" : [ - "Balance accounts" - ], - "summary" : "Get payment instruments linked to a balance account", - "description" : "Returns a paginated list of the payment instruments associated with a balance account. \n\nTo fetch multiple pages, use the query parameters.For example, to limit the page to 3 payment instruments which are in active status and to skip the first 6, use `/balanceAccounts/{id}/paymentInstruments?limit=3&offset=6&status=active`.", - "x-addedInVersion" : "1", - "operationId" : "get-balanceAccounts-id-paymentInstruments", - "x-sortIndex" : 4, - "x-methodName" : "getPaymentInstrumentsLinkedToBalanceAccount", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the balance account.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "description" : "The number of items that you want to skip.", - "name" : "offset", - "in" : "query", - "required" : false, - "schema" : { - "format" : "int32", - "type" : "integer" - } - }, - { - "description" : "The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page.", - "name" : "limit", - "in" : "query", - "required" : false, - "schema" : { - "format" : "int32", - "type" : "integer" - } - }, - { - "description" : "The status of the payment instruments that you want to get. By default, the response includes payment instruments with any status.", - "name" : "status", - "in" : "query", - "required" : false, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-balanceAccounts-id-paymentInstruments-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PaginatedPaymentInstrumentsResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/balanceAccounts/{id}/transactionRules" : { - "get" : { - "tags" : [ - "Balance accounts" - ], - "summary" : "Get all transaction rules for a balance account", - "description" : "Returns a list of transaction rules associated with a balance account.", - "x-addedInVersion" : "1", - "operationId" : "get-balanceAccounts-id-transactionRules", - "x-sortIndex" : 14, - "x-methodName" : "getAllTransactionRulesForBalanceAccount", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the balance account.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/TransactionRulesResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/balancePlatforms/{id}" : { - "get" : { - "tags" : [ - "Platform" - ], - "summary" : "Get a balance platform", - "description" : "Returns a balance platform.", - "x-addedInVersion" : "1", - "operationId" : "get-balancePlatforms-id", - "x-sortIndex" : 1, - "x-methodName" : "getBalancePlatform", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the balance platform.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-balancePlatforms-id-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/BalancePlatform" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/balancePlatforms/{id}/accountHolders" : { - "get" : { - "tags" : [ - "Platform" - ], - "summary" : "Get all account holders under a balance platform", - "description" : "Returns a paginated list of all the account holders that belong to the balance platform. To fetch multiple pages, use the query parameters. \n\nFor example, to limit the page to 5 account holders and to skip the first 20, use `/balancePlatforms/{id}/accountHolders?limit=5&offset=20`.", - "x-addedInVersion" : "1", - "operationId" : "get-balancePlatforms-id-accountHolders", - "x-sortIndex" : 2, - "x-methodName" : "getAllAccountHoldersUnderBalancePlatform", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the balance platform.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "description" : "The number of items that you want to skip.", - "name" : "offset", - "in" : "query", - "required" : false, - "schema" : { - "format" : "int32", - "type" : "integer" - } - }, - { - "description" : "The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page.", - "name" : "limit", - "in" : "query", - "required" : false, - "schema" : { - "format" : "int32", - "type" : "integer" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-balancePlatforms-id-accountHolders-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PaginatedAccountHoldersResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/balancePlatforms/{id}/transactionRules" : { - "get" : { - "tags" : [ - "Platform" - ], - "summary" : "Get all transaction rules for a balance platform", - "description" : "Returns a list of transaction rules associated with a balance platform.", - "x-addedInVersion" : "1", - "operationId" : "get-balancePlatforms-id-transactionRules", - "x-sortIndex" : 5, - "x-methodName" : "getAllTransactionRulesForBalancePlatform", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the balance platform.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/TransactionRulesResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/cardorders" : { - "get" : { - "tags" : [ - "Card orders" - ], - "summary" : "Get a list of card orders", - "description" : "Returns a paginated list of card orders.", - "x-addedInVersion" : "1", - "operationId" : "get-cardorders", - "x-sortIndex" : 1, - "x-methodName" : "listCardOrders", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the card order. ", - "name" : "id", - "in" : "query", - "required" : false, - "schema" : { - "type" : "string" - } - }, - { - "description" : "The unique identifier of the card manufacturer profile.", - "name" : "cardManufacturingProfileId", - "in" : "query", - "required" : false, - "schema" : { - "type" : "string" - } - }, - { - "description" : "The status of the card order.", - "name" : "status", - "in" : "query", - "required" : false, - "schema" : { - "type" : "string" - } - }, - { - "description" : "The unique code of the card manufacturer profile.\n\nPossible values: **mcmaestro**, **mc**, **visa**, **mcdebit**. ", - "name" : "txVariantCode", - "in" : "query", - "required" : false, - "schema" : { - "type" : "string" - } - }, - { - "description" : "Only include card orders that have been created on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**.", - "name" : "createdSince", - "in" : "query", - "required" : false, - "schema" : { - "format" : "date-time", - "type" : "string" - } - }, - { - "description" : "Only include card orders that have been created on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**.", - "name" : "createdUntil", - "in" : "query", - "required" : false, - "schema" : { - "format" : "date-time", - "type" : "string" - } - }, - { - "description" : "Only include card orders that have been locked on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**.", - "name" : "lockedSince", - "in" : "query", - "required" : false, - "schema" : { - "format" : "date-time", - "type" : "string" - } - }, - { - "description" : "Only include card orders that have been locked on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**.", - "name" : "lockedUntil", - "in" : "query", - "required" : false, - "schema" : { - "format" : "date-time", - "type" : "string" - } - }, - { - "description" : "The service center at which the card is issued. The value is case-sensitive. ", - "name" : "serviceCenter", - "in" : "query", - "required" : false, - "schema" : { - "type" : "string" - } - }, - { - "description" : "Specifies the position of an element in a list of card orders. The response includes a list of card orders that starts at the specified offset.\n\n**Default:** 0, which means that the response contains all the elements in the list of card orders.", - "name" : "offset", - "in" : "query", - "required" : false, - "schema" : { - "format" : "int32", - "type" : "integer" - } - }, - { - "description" : "The number of card orders returned per page. **Default:** 10.", - "name" : "limit", - "in" : "query", - "required" : false, - "schema" : { - "format" : "int32", - "type" : "integer" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-cardorders-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PaginatedGetCardOrderResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/cardorders/{id}/items" : { - "get" : { - "tags" : [ - "Card orders" - ], - "summary" : "Get card order items", - "description" : "Returns the item list of a specific card order.", - "x-addedInVersion" : "1", - "operationId" : "get-cardorders-id-items", - "x-sortIndex" : 2, - "x-methodName" : "getCardOrderItems", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the card order.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "description" : "Specifies the position of an element in a list of card orders. The response includes a list of card order items that starts at the specified offset.\n\n**Default:** 0, which means that the response contains all the elements in the list of card order items.", - "name" : "offset", - "in" : "query", - "required" : false, - "schema" : { - "format" : "int32", - "type" : "integer" - } - }, - { - "description" : "The number of card order items returned per page. **Default:** 10.", - "name" : "limit", - "in" : "query", - "required" : false, - "schema" : { - "format" : "int32", - "type" : "integer" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-cardorders-id-items-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PaginatedGetCardOrderItemResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/grantAccounts/{id}" : { - "get" : { - "tags" : [ - "Grant accounts" - ], - "summary" : "Get a grant account", - "description" : "Returns the details of the [grant account](https://docs.adyen.com/platforms/capital#grant-account).", - "deprecated" : true, - "x-deprecatedInVersion" : "2", - "x-deprecatedMessage" : "Use the `/grantAccounts/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead.", - "x-addedInVersion" : "1", - "operationId" : "get-grantAccounts-id", - "x-sortIndex" : 1, - "x-methodName" : "getGrantAccount", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the grant account.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CapitalGrantAccount" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/grantOffers" : { - "get" : { - "tags" : [ - "Grant offers" - ], - "summary" : "Get all available grant offers", - "description" : "Returns a list of all [grant offers](https://docs.adyen.com/platforms/capital#grant-offers) available for `accountHolderId` specified as a query parameter.", - "deprecated" : true, - "x-deprecatedInVersion" : "2", - "x-deprecatedMessage" : "Use the `/grantOffers` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) instead.", - "x-addedInVersion" : "2", - "operationId" : "get-grantOffers", - "x-sortIndex" : 1, - "x-methodName" : "getAllAvailableGrantOffers", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the grant account.", - "name" : "accountHolderId", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GrantOffers" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/grantOffers/{grantOfferId}" : { - "get" : { - "tags" : [ - "Grant offers" - ], - "summary" : "Get a grant offer", - "description" : "Returns the details of a single grant offer.", - "deprecated" : true, - "x-deprecatedInVersion" : "2", - "x-deprecatedMessage" : "Use the `/grantOffers/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead.", - "x-addedInVersion" : "2", - "operationId" : "get-grantOffers-grantOfferId", - "x-sortIndex" : 1, - "x-methodName" : "getGrantOffer", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the grant offer.", - "name" : "grantOfferId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GrantOffer" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/networkTokens/{networkTokenId}" : { - "get" : { - "tags" : [ - "Network tokens" - ], - "summary" : "Get a network token", - "description" : "Returns the details of a network token.", - "x-addedInVersion" : "1", - "operationId" : "get-networkTokens-networkTokenId", - "x-sortIndex" : 1, - "x-methodName" : "getNetworkToken", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the network token.", - "name" : "networkTokenId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetNetworkTokenResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - }, - "patch" : { - "tags" : [ - "Network tokens" - ], - "summary" : "Update a network token", - "description" : "Updates the status of the network token.", - "x-addedInVersion" : "1", - "operationId" : "patch-networkTokens-networkTokenId", - "x-sortIndex" : 2, - "x-methodName" : "updateNetworkToken", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/UpdateNetworkTokenRequest" - } - } - } - }, - "parameters" : [ - { - "description" : "The unique identifier of the network token.", - "name" : "networkTokenId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "202" : { - "description" : "No Content - look at the actual response code for the status of the request. " - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/paymentInstrumentGroups" : { - "post" : { - "tags" : [ - "Payment instrument groups" - ], - "summary" : "Create a payment instrument group", - "description" : "Creates a payment instrument group to associate and group payment instrument resources together. You can apply a transaction rule to a payment instrument group.", - "x-addedInVersion" : "1", - "operationId" : "post-paymentInstrumentGroups", - "x-sortIndex" : 1, - "x-methodName" : "createPaymentInstrumentGroup", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "examples" : { - "createPaymentInstrumentGroups" : { - "$ref" : "#/components/examples/post-paymentInstrumentGroups-createPaymentInstrumentGroups" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PaymentInstrumentGroupInfo" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "createPaymentInstrumentGroups" : { - "$ref" : "#/components/examples/post-paymentInstrumentGroups-createPaymentInstrumentGroups-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PaymentInstrumentGroup" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/paymentInstrumentGroups/{id}" : { - "get" : { - "tags" : [ - "Payment instrument groups" - ], - "summary" : "Get a payment instrument group", - "description" : "Returns the details of a payment instrument group.", - "x-addedInVersion" : "1", - "operationId" : "get-paymentInstrumentGroups-id", - "x-sortIndex" : 2, - "x-methodName" : "getPaymentInstrumentGroup", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the payment instrument group.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-paymentInstrumentGroups-id-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PaymentInstrumentGroup" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/paymentInstrumentGroups/{id}/transactionRules" : { - "get" : { - "tags" : [ - "Payment instrument groups" - ], - "summary" : "Get all transaction rules for a payment instrument group", - "description" : "Returns a list of all the transaction rules associated with a payment instrument group.", - "x-addedInVersion" : "1", - "operationId" : "get-paymentInstrumentGroups-id-transactionRules", - "x-sortIndex" : 3, - "x-methodName" : "getAllTransactionRulesForPaymentInstrumentGroup", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the payment instrument group.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-paymentInstrumentGroups-id-transactionRules-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/TransactionRulesResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/paymentInstruments" : { - "post" : { - "tags" : [ - "Payment instruments" - ], - "summary" : "Create a payment instrument", - "description" : "Creates a payment instrument to issue a physical card, a virtual card, or a business account to your user.\n\n For more information, refer to [Issue cards](https://docs.adyen.com/issuing/create-cards) or [Issue business accounts](https://docs.adyen.com/platforms/business-accounts).", - "x-addedInVersion" : "1", - "operationId" : "post-paymentInstruments", - "x-sortIndex" : 1, - "x-methodName" : "createPaymentInstrument", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "examples" : { - "createBusinessAccountNL" : { - "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountNL" - }, - "createBusinessAccountNL-DELocalIBAN" : { - "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountNL-DELocalIBAN" - }, - "createBusinessAccountNL-FRLocalIBAN" : { - "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountNL-FRLocalIBAN" - }, - "createBusinessAccountUK" : { - "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountUK" - }, - "createBusinessAccountUS" : { - "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountUS" - }, - "createPhysicalCard" : { - "$ref" : "#/components/examples/post-paymentInstruments-createPhysicalCard" - }, - "createVirtualCard" : { - "$ref" : "#/components/examples/post-paymentInstruments-createVirtualCard" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PaymentInstrumentInfo" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "createBusinessAccountNL" : { - "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountNL-200" - }, - "createBusinessAccountNL-DELocalIBAN" : { - "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountNL-DELocalIBAN-200" - }, - "createBusinessAccountNL-FRLocalIBAN" : { - "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountNL-FRLocalIBAN-200" - }, - "createBusinessAccountUK" : { - "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountUK-200" - }, - "createBusinessAccountUS" : { - "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountUS-200" - }, - "createPhysicalCard" : { - "$ref" : "#/components/examples/post-paymentInstruments-createPhysicalCard-200" - }, - "createVirtualCard" : { - "$ref" : "#/components/examples/post-paymentInstruments-createVirtualCard-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PaymentInstrument" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/paymentInstruments/reveal" : { - "post" : { - "tags" : [ - "Payment instruments" - ], - "summary" : "Reveal the data of a payment instrument", - "description" : "Returns the encrypted data of a specified payment instrument. These data include:\n\n- The primary account number (PAN)\n- The card verification code (CVC)\n- The expiry date\n\nYou can decrypt the data to reveal it in your user interface.\n\nTo make this request, your API credential must have the following role:\n* Bank Issuing PAN Reveal Webservice role", - "x-addedInVersion" : "1", - "operationId" : "post-paymentInstruments-reveal", - "x-sortIndex" : 4, - "x-methodName" : "revealDataOfPaymentInstrument", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PaymentInstrumentRevealRequest" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PaymentInstrumentRevealResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/paymentInstruments/{id}" : { - "get" : { - "tags" : [ - "Payment instruments" - ], - "summary" : "Get a payment instrument", - "description" : "Returns the details of a payment instrument.", - "x-addedInVersion" : "1", - "operationId" : "get-paymentInstruments-id", - "x-sortIndex" : 3, - "x-methodName" : "getPaymentInstrument", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the payment instrument.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-paymentInstruments-id-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PaymentInstrument" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - }, - "patch" : { - "tags" : [ - "Payment instruments" - ], - "summary" : "Update a payment instrument", - "description" : "Updates a payment instrument. Once a payment instrument is already active, you can only update its status. However, for cards created with **inactive** status, you can still update the balance account associated with the card.", - "x-addedInVersion" : "1", - "operationId" : "patch-paymentInstruments-id", - "x-sortIndex" : 2, - "x-methodName" : "updatePaymentInstrument", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "examples" : { - "updatePaymentInstrumentBalanceAccount" : { - "$ref" : "#/components/examples/patch-paymentInstruments-id-updatePaymentInstrumentBalanceAccount" - }, - "updatePaymentInstrumentStatus" : { - "$ref" : "#/components/examples/patch-paymentInstruments-id-updatePaymentInstrumentStatus" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PaymentInstrumentUpdateRequest" - } - } - } - }, - "parameters" : [ - { - "description" : "The unique identifier of the payment instrument.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "updatePaymentInstrumentBalanceAccount" : { - "$ref" : "#/components/examples/patch-paymentInstruments-id-updatePaymentInstrumentBalanceAccount-200" - }, - "updatePaymentInstrumentStatus" : { - "$ref" : "#/components/examples/patch-paymentInstruments-id-updatePaymentInstrumentStatus-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/UpdatePaymentInstrument" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/paymentInstruments/{id}/networkTokens" : { - "get" : { - "tags" : [ - "Payment instruments" - ], - "summary" : "List network tokens", - "description" : "List the network tokens connected to a payment instrument.", - "x-addedInVersion" : "1", - "operationId" : "get-paymentInstruments-id-networkTokens", - "x-sortIndex" : 6, - "x-methodName" : "listNetworkTokens", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the payment instrument.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ListNetworkTokensResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/paymentInstruments/{id}/reveal" : { - "get" : { - "tags" : [ - "Payment instruments" - ], - "summary" : "Get the PAN of a payment instrument", - "description" : "Returns the primary account number (PAN) of a payment instrument.\n\nTo make this request, your API credential must have the following [role](https://docs.adyen.com/issuing/manage-access/api-credentials-web-service#api-permissions):\n\n* Balance Platform BCL PCI role", - "x-addedInVersion" : "1", - "operationId" : "get-paymentInstruments-id-reveal", - "x-sortIndex" : 5, - "x-methodName" : "getPanOfPaymentInstrument", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the payment instrument.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-paymentInstruments-id-reveal-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PaymentInstrumentRevealInfo" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/paymentInstruments/{id}/transactionRules" : { - "get" : { - "tags" : [ - "Payment instruments" - ], - "summary" : "Get all transaction rules for a payment instrument", - "description" : "Returns a list of transaction rules associated with a payment instrument.", - "x-addedInVersion" : "1", - "operationId" : "get-paymentInstruments-id-transactionRules", - "x-sortIndex" : 7, - "x-methodName" : "getAllTransactionRulesForPaymentInstrument", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the payment instrument.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-paymentInstruments-id-transactionRules-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/TransactionRulesResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/pins/change" : { - "post" : { - "tags" : [ - "Manage card PIN" - ], - "summary" : "Change a card PIN", - "description" : "Changes the personal identification number (PIN) of a specified card.\n\nTo make this request, your API credential must have the following role:\n* Bank Issuing PIN Change Webservice role", - "x-addedInVersion" : "1", - "operationId" : "post-pins-change", - "x-sortIndex" : 2, - "x-methodName" : "changeCardPin", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "examples" : { - "requestPinChange" : { - "$ref" : "#/components/examples/post-pins-change-requestPinChange" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PinChangeRequest" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "requestPinChange" : { - "$ref" : "#/components/examples/post-pins-change-requestPinChange-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PinChangeResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/pins/reveal" : { - "post" : { - "tags" : [ - "Manage card PIN" - ], - "summary" : "Reveal a card PIN", - "description" : "Returns an encrypted PIN block that contains the PIN of a specified card. You can use the decrypted data to reveal the PIN in your user interface.\n\nTo make this request, your API credential must have the following role:\n* Bank Issuing PIN Reveal Webservice role", - "x-addedInVersion" : "1", - "operationId" : "post-pins-reveal", - "x-sortIndex" : 2, - "x-methodName" : "revealCardPin", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "examples" : { - "requestPinBlock" : { - "$ref" : "#/components/examples/post-pins-reveal-requestPinBlock" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RevealPinRequest" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "requestPinBlock" : { - "$ref" : "#/components/examples/post-pins-reveal-requestPinBlock-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RevealPinResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/publicKey" : { - "get" : { - "tags" : [ - "Manage card PIN" - ], - "summary" : "Get an RSA public key", - "description" : "Get an [RSA](https://en.wikipedia.org/wiki/RSA_(cryptosystem)) public key to encrypt or decrypt card data.\n\n You need the RSA public key to generate the `encryptedKey` required to:\n- [Change a PIN](https://docs.adyen.com/api-explorer/balanceplatform/2/post/pins/change).\n- [Reveal a PIN](https://docs.adyen.com/api-explorer/balanceplatform/2/post/pins/reveal).\n- [Reveal a PAN](https://docs.adyen.com/api-explorer/balanceplatform/2/post/paymentInstruments/reveal).", - "x-addedInVersion" : "1", - "operationId" : "get-publicKey", - "x-sortIndex" : 3, - "x-methodName" : "publicKey", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The purpose of the public key.\n\nPossible values: **pinChange**, **pinReveal**, **panReveal**.\n\nDefault value: **pinReveal**.", - "name" : "purpose", - "in" : "query", - "required" : false, - "schema" : { - "type" : "string" - } - }, - { - "description" : "The encoding format of public key.\n\nPossible values: **jwk**, **pem**.\n\nDefault value: **pem**.", - "name" : "format", - "in" : "query", - "required" : false, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-publicKey-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/PublicKeyResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/registeredDevices" : { - "get" : { - "tags" : [ - "Manage SCA devices" - ], - "summary" : "Get a list of registered SCA devices", - "description" : "Get a paginated list of the SCA devices you have currently registered for a specific payment instrument.", - "x-addedInVersion" : "1", - "operationId" : "get-registeredDevices", - "x-sortIndex" : 3, - "x-methodName" : "listRegisteredScaDevices", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of a payment instrument. It limits the returned list to SCA devices associated to this payment instrument.", - "name" : "paymentInstrumentId", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "description" : "The index of the page to retrieve. The index of the first page is 0 (zero).\n\nDefault: 0.", - "name" : "pageNumber", - "in" : "query", - "required" : false, - "schema" : { - "format" : "int32", - "type" : "integer" - } - }, - { - "description" : "The number of items to have on a page.\n\nDefault: 20. Maximum: 100.", - "name" : "pageSize", - "in" : "query", - "required" : false, - "schema" : { - "format" : "int32", - "type" : "integer" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SearchRegisteredDevicesResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - }, - "post" : { - "tags" : [ - "Manage SCA devices" - ], - "summary" : "Initiate the registration of an SCA device", - "description" : "Initiates the registration of a user's device for Strong Customer Authentication (SCA). You can register SCA devices for [business accounts](https://docs.adyen.com/platforms/business-accounts/sca/register-devices) or [Adyen-issued cards](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/register-devices).\n\nFor a successful request, the device must be eligible for SCA.", - "x-addedInVersion" : "1", - "operationId" : "post-registeredDevices", - "x-sortIndex" : 1, - "x-methodName" : "initiateRegistrationOfScaDevice", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/RegisterSCARequest" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/RegisterSCAResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/registeredDevices/{deviceId}/associations" : { - "patch" : { - "tags" : [ - "Manage SCA devices" - ], - "summary" : "Complete an association between an SCA device and a resource", - "description" : "Completes an association between a user's registered SCA device and an Adyen resource. For example, you can associate an SCA device with additional [business accounts](https://docs.adyen.com/platforms/business-accounts/sca/register-devices) or [Adyen-issued cards](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/register-devices).\n\nTo complete the association, this endpoint validates the authentication data of the registered device.", - "x-addedInVersion" : "2", - "operationId" : "patch-registeredDevices-deviceId-associations", - "x-sortIndex" : 5, - "x-methodName" : "completeAssociationBetweenScaDeviceAndResource", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/AssociationFinaliseRequest" - } - } - } - }, - "parameters" : [ - { - "description" : "The unique identifier of the SCA device that you are associating with a resource.", - "name" : "deviceId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/AssociationFinaliseResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - }, - "post" : { - "tags" : [ - "Manage SCA devices" - ], - "summary" : "Initiate an association between an SCA device and a resource", - "description" : "Initiates an association between a user's registered SCA device and an Adyen resource. For example, you can associate an SCA device with additional [business accounts](https://docs.adyen.com/platforms/business-accounts/sca/register-devices) or [Adyen-issued cards](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/register-devices).", - "x-addedInVersion" : "2", - "operationId" : "post-registeredDevices-deviceId-associations", - "x-sortIndex" : 4, - "x-methodName" : "initiateAssociationBetweenScaDeviceAndResource", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/AssociationInitiateRequest" - } - } - } - }, - "parameters" : [ - { - "description" : "The unique identifier of the SCA device that you are associating with a resource.", - "name" : "deviceId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/AssociationInitiateResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/registeredDevices/{id}" : { - "delete" : { - "tags" : [ - "Manage SCA devices" - ], - "summary" : "Delete a registration of an SCA device", - "description" : "Deletes an SCA device from the list of registered devices of a specific payment instrument.", - "x-addedInVersion" : "1", - "operationId" : "delete-registeredDevices-id", - "x-sortIndex" : 6, - "x-methodName" : "deleteRegistrationOfScaDevice", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the SCA device.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "description" : "The unique identifier of the payment instrument linked to the SCA device.", - "name" : "paymentInstrumentId", - "in" : "query", - "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" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - }, - "patch" : { - "tags" : [ - "Manage SCA devices" - ], - "summary" : "Complete the registration of an SCA device", - "description" : "Completes the registration of an SCA device by validating the authentication data of the device. You can register SCA devices for [business accounts](https://docs.adyen.com/platforms/business-accounts/sca) or [Adyen-issued cards](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk).\n\n", - "x-addedInVersion" : "1", - "operationId" : "patch-registeredDevices-id", - "x-sortIndex" : 2, - "x-methodName" : "completeRegistrationOfScaDevice", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/RegisterSCARequest" - } - } - } - }, - "parameters" : [ - { - "description" : "The unique identifier of the SCA device. You obtain this `id` in the response of a POST [/registeredDevices](https://docs.adyen.com/api-explorer/balanceplatform/2/post/registeredDevices#responses-200-id) request.", - "name" : "id", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/RegisterSCAFinalResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/transactionRules" : { - "post" : { - "tags" : [ - "Transaction rules" - ], - "summary" : "Create a transaction rule", - "description" : "Creates a [transaction rule](https://docs.adyen.com/issuing/transaction-rules). When your user makes a transaction with their Adyen-issued card, the transaction is allowed or declined based on the conditions and outcome defined in the transaction rule. You can apply the transaction rule to several cards, such as all the cards in your platform, or to a specific card. For use cases, see [examples](https://docs.adyen.com/issuing/transaction-rules/examples).", - "x-addedInVersion" : "1", - "operationId" : "post-transactionRules", - "x-sortIndex" : 1, - "x-methodName" : "createTransactionRule", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "examples" : { - "createTransactionRuleAllowPos" : { - "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleAllowPos" - }, - "createTransactionRuleIncreaseScore" : { - "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleIncreaseScore" - }, - "createTransactionRuleLimitSliding" : { - "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleLimitSliding" - }, - "createTransactionRuleLimitTransaction" : { - "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleLimitTransaction" - } - }, - "schema" : { - "$ref" : "#/components/schemas/TransactionRuleInfo" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "createTransactionRuleAllowPos" : { - "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleAllowPos-200" - }, - "createTransactionRuleIncreaseScore" : { - "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleIncreaseScore-200" - }, - "createTransactionRuleLimitSliding" : { - "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleLimitSliding-200" - }, - "createTransactionRuleLimitTransaction" : { - "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleLimitTransaction-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/TransactionRule" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/transactionRules/{transactionRuleId}" : { - "delete" : { - "tags" : [ - "Transaction rules" - ], - "summary" : "Delete a transaction rule", - "description" : "Deletes a transaction rule.", - "x-addedInVersion" : "1", - "operationId" : "delete-transactionRules-transactionRuleId", - "x-sortIndex" : 5, - "x-methodName" : "deleteTransactionRule", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the transaction rule.", - "name" : "transactionRuleId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/delete-transactionRules-transactionRuleId-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/TransactionRule" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - }, - "get" : { - "tags" : [ - "Transaction rules" - ], - "summary" : "Get a transaction rule", - "description" : "Returns the details of a transaction rule.", - "x-addedInVersion" : "1", - "operationId" : "get-transactionRules-transactionRuleId", - "x-sortIndex" : 2, - "x-methodName" : "getTransactionRule", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "parameters" : [ - { - "description" : "The unique identifier of the transaction rule.", - "name" : "transactionRuleId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "success" : { - "$ref" : "#/components/examples/get-transactionRules-transactionRuleId-success-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/TransactionRuleResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - }, - "patch" : { - "tags" : [ - "Transaction rules" - ], - "summary" : "Update a transaction rule", - "description" : "Updates a transaction rule. \n\n* To update only the status of a transaction rule, send only the `status` parameter. All other parameters not provided in the request are left unchanged.\n\n* When updating any other parameter, you need to send all existing resource parameters. If you omit a parameter in the request, that parameter is removed from the resource.", - "x-addedInVersion" : "1", - "operationId" : "patch-transactionRules-transactionRuleId", - "x-sortIndex" : 3, - "x-methodName" : "updateTransactionRule", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "examples" : { - "updateTransactionRuleStatus" : { - "$ref" : "#/components/examples/patch-transactionRules-transactionRuleId-updateTransactionRuleStatus" - } - }, - "schema" : { - "$ref" : "#/components/schemas/TransactionRuleInfo" - } - } - } - }, - "parameters" : [ - { - "description" : "The unique identifier of the transaction rule.", - "name" : "transactionRuleId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "updateTransactionRuleStatus" : { - "$ref" : "#/components/examples/patch-transactionRules-transactionRuleId-updateTransactionRuleStatus-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/TransactionRule" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "400" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-400" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Bad Request - a problem reading or understanding the request." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/transferRoutes/calculate" : { - "post" : { - "tags" : [ - "Transfer routes" - ], - "summary" : "Calculate transfer routes", - "description" : "Returns available transfer routes based on a combination of transfer `country`, `currency`, `counterparty`, and `priorities`. Use this endpoint to find optimal transfer priorities and associated requirements before you [make a transfer](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers).", - "x-addedInVersion" : "1", - "operationId" : "post-transferRoutes-calculate", - "x-sortIndex" : 1, - "x-methodName" : "calculateTransferRoutes", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "examples" : { - "transferRoutesCalculate" : { - "$ref" : "#/components/examples/post-transferRoutes-calculate-transferRoutesCalculate" - } - }, - "schema" : { - "$ref" : "#/components/schemas/TransferRouteRequest" - } - } - } - }, - "responses" : { - "200" : { - "content" : { - "application/json" : { - "examples" : { - "transferRoutesCalculate" : { - "$ref" : "#/components/examples/post-transferRoutes-calculate-transferRoutesCalculate-200" - } - }, - "schema" : { - "$ref" : "#/components/schemas/TransferRouteResponse" - } - } - }, - "description" : "OK - the request has succeeded." - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } - }, - "/validateBankAccountIdentification" : { - "post" : { - "tags" : [ - "Bank account validation" - ], - "summary" : "Validate a bank account", - "description" : "Validates bank account identification details. You can use this endpoint to validate bank account details before you [make a transfer](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers) or [create a transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments).", - "x-addedInVersion" : "1", - "operationId" : "post-validateBankAccountIdentification", - "x-sortIndex" : 1, - "x-methodName" : "validateBankAccountIdentification", - "security" : [ - { - "clientKey" : [ - ] - }, - { - "BasicAuth" : [ - ] - }, - { - "ApiKeyAuth" : [ - ] - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "examples" : { - "validateBankAccountIdentificationIban" : { - "$ref" : "#/components/examples/post-validateBankAccountIdentification-validateBankAccountIdentificationIban" - }, - "validateBankAccountIdentificationUs" : { - "$ref" : "#/components/examples/post-validateBankAccountIdentification-validateBankAccountIdentificationUs" - } - }, - "schema" : { - "$ref" : "#/components/schemas/BankAccountIdentificationValidationRequest" - } - } - } - }, - "responses" : { - "200" : { - "description" : "No Content - look at the actual response code for the status of the request. " - }, - "401" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-401" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unauthorized - authentication required." - }, - "403" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-403" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Forbidden - insufficient permissions to process the request." - }, - "422" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-422" - }, - "validateBankAccountIdentificationIban" : { - "$ref" : "#/components/examples/post-validateBankAccountIdentification-validateBankAccountIdentificationIban-422" - }, - "validateBankAccountIdentificationUs" : { - "$ref" : "#/components/examples/post-validateBankAccountIdentification-validateBankAccountIdentificationUs-422" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Unprocessable Entity - a request validation error." - }, - "500" : { - "content" : { - "application/json" : { - "examples" : { - "generic" : { - "$ref" : "#/components/examples/generic-500" - } - }, - "schema" : { - "$ref" : "#/components/schemas/RestServiceError" - } - } - }, - "description" : "Internal Server Error - the server could not process the request." - } - } - } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "2", + "x-sortIndex" : 5, + "x-methodName" : "getTaxForm" } - }, - "components" : { - "schemas" : { - "AULocalAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The bank account number, without separators or whitespace.", - "maxLength" : 9, - "minLength" : 5, - "type" : "string" - }, - "bsbCode" : { - "description" : "The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace.", - "maxLength" : 6, - "minLength" : 6, - "type" : "string" - }, - "type" : { - "default" : "auLocal", - "description" : "**auLocal**", - "enum" : [ - "auLocal" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "accountNumber", - "bsbCode" - ], - "type" : "object" - }, - "AccountHolder" : { - "additionalProperties" : false, - "properties" : { - "balancePlatform" : { - "description" : "The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms.", - "type" : "string" - }, - "capabilities" : { - "additionalProperties" : { - "$ref" : "#/components/schemas/AccountHolderCapability" + }, + "/accountHolders/{id}/transactionRules" : { + "get" : { + "tags" : [ "Account holders" ], + "summary" : "Get all transaction rules for an account holder", + "description" : "Returns a list of transaction rules associated with an account holder.", + "operationId" : "get-accountHolders-id-transactionRules", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the account holder.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/TransactionRulesResponse" + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 18, + "x-methodName" : "getAllTransactionRulesForAccountHolder" + } + }, + "/balanceAccounts" : { + "post" : { + "tags" : [ "Balance accounts" ], + "summary" : "Create a balance account", + "description" : "Creates a balance account that holds the funds of the associated account holder.", + "operationId" : "post-balanceAccounts", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BalanceAccountInfo" + }, + "examples" : { + "createBalanceAccount" : { + "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccount" + }, + "createBalanceAccountCAD" : { + "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccountCAD" + }, + "createBalanceAccountGBP" : { + "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccountGBP" + }, + "createBalanceAccountUSD" : { + "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccountUSD" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BalanceAccount" + }, + "examples" : { + "createBalanceAccount" : { + "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccount-200" }, - "description" : "Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.", - "type" : "object" - }, - "contactDetails" : { - "deprecated" : true, - "description" : "Contact details of the account holder.", - "$ref" : "#/components/schemas/ContactDetails" - }, - "description" : { - "description" : "Your description for the account holder.", - "maxLength" : 300, - "type" : "string" - }, - "id" : { - "description" : "The unique identifier of the account holder.", - "readOnly" : true, - "type" : "string" - }, - "legalEntityId" : { - "description" : "The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.", - "type" : "string" - }, - "metadata" : { - "additionalProperties" : { - "type" : "string" + "createBalanceAccountCAD" : { + "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccountCAD-200" }, - "description" : "A set of key and value pairs for general use.\nThe keys do not have specific names and may be used for storing miscellaneous data as desired.\n> Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.", - "type" : "object" - }, - "migratedAccountHolderCode" : { - "description" : "The unique identifier of the migrated account holder in the classic integration.", - "readOnly" : true, - "type" : "string" - }, - "primaryBalanceAccount" : { - "description" : "The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request.", - "type" : "string" - }, - "reference" : { - "description" : "Your reference for the account holder.", - "maxLength" : 150, - "type" : "string" - }, - "status" : { - "description" : "The status of the account holder.\n\nPossible values: \n\n * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. \n\n * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. \n\n* **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed.", - "enum" : [ - "active", - "closed", - "suspended" - ], - "type" : "string" - }, - "timeZone" : { - "description" : "The time zone of the account holder. For example, **Europe/Amsterdam**.\nDefaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).", - "type" : "string" - }, - "verificationDeadlines" : { - "description" : "List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.", - "items" : { - "$ref" : "#/components/schemas/VerificationDeadline" + "createBalanceAccountGBP" : { + "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccountGBP-200" }, - "readOnly" : true, - "type" : "array" - } - }, - "required" : [ - "legalEntityId", - "id" - ], - "type" : "object" - }, - "AccountHolderCapability" : { - "additionalProperties" : false, - "properties" : { - "allowed" : { - "description" : "Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability.", - "readOnly" : true, - "type" : "boolean" - }, - "allowedLevel" : { - "description" : "The capability level that is allowed for the account holder.\n\nPossible values: **notApplicable**, **low**, **medium**, **high**.", - "enum" : [ - "high", - "low", - "medium", - "notApplicable" - ], - "readOnly" : true, - "type" : "string" - }, - "allowedSettings" : { - "description" : "A JSON object containing the settings that are allowed for the account holder.", - "readOnly" : true, - "$ref" : "#/components/schemas/CapabilitySettings" - }, - "enabled" : { - "description" : "Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder.", - "type" : "boolean" - }, - "problems" : { - "description" : "Contains verification errors and the actions that you can take to resolve them.", - "items" : { - "$ref" : "#/components/schemas/CapabilityProblem" + "createBalanceAccountUSD" : { + "$ref" : "#/components/examples/post-balanceAccounts-createBalanceAccountUSD-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 1, + "x-methodName" : "createBalanceAccount" + } + }, + "/balanceAccounts/{balanceAccountId}/sweeps" : { + "get" : { + "tags" : [ "Balance accounts" ], + "summary" : "Get all sweeps for a balance account", + "description" : "Returns a list of the sweeps configured for a balance account.\n\nTo fetch multiple pages, use the query parameters. For example, to limit the page to 5 sweeps and to skip the first 10, use `/balanceAccounts/{balanceAccountId}/sweeps?limit=5&offset=10`.", + "operationId" : "get-balanceAccounts-balanceAccountId-sweeps", + "parameters" : [ { + "name" : "balanceAccountId", + "in" : "path", + "description" : "The unique identifier of the balance account.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "offset", + "in" : "query", + "description" : "The number of items that you want to skip.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "limit", + "in" : "query", + "description" : "The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BalanceSweepConfigurationsResponse" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-balanceAccounts-balanceAccountId-sweeps-success-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "2", + "x-sortIndex" : 7, + "x-methodName" : "getAllSweepsForBalanceAccount" + }, + "post" : { + "tags" : [ "Balance accounts" ], + "summary" : "Create a sweep", + "description" : "Creates a sweep that results in moving funds from or to a balance account.\n\nA sweep pulls in or pushes out funds based on a defined schedule, amount, currency, and a source or a destination.", + "operationId" : "post-balanceAccounts-balanceAccountId-sweeps", + "parameters" : [ { + "name" : "balanceAccountId", + "in" : "path", + "description" : "The unique identifier of the balance account.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CreateSweepConfigurationV2" + }, + "examples" : { + "createSweep-pull" : { + "$ref" : "#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-pull" + }, + "createSweep-push" : { + "$ref" : "#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-push" + }, + "createSweep-push-priorities" : { + "$ref" : "#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-push-priorities" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/SweepConfigurationV2" + }, + "examples" : { + "createSweep-pull" : { + "$ref" : "#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-pull-200" }, - "readOnly" : true, - "type" : "array" - }, - "requested" : { - "description" : "Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field.", - "type" : "boolean" - }, - "requestedLevel" : { - "description" : "The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring.\n\nPossible values: **notApplicable**, **low**, **medium**, **high**.", - "enum" : [ - "high", - "low", - "medium", - "notApplicable" - ], - "type" : "string" - }, - "requestedSettings" : { - "description" : "A JSON object containing the settings that were requested for the account holder.", - "readOnly" : true, - "$ref" : "#/components/schemas/CapabilitySettings" - }, - "transferInstruments" : { - "description" : "Contains the status of the transfer instruments associated with this capability. ", - "items" : { - "$ref" : "#/components/schemas/AccountSupportingEntityCapability" + "createSweep-push" : { + "$ref" : "#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-push-200" }, - "readOnly" : true, - "type" : "array" - }, - "verificationStatus" : { - "description" : "The status of the verification checks for the capability.\n\nPossible values:\n\n* **pending**: Adyen is running the verification.\n\n* **invalid**: The verification failed. Check if the `errors` array contains more information.\n\n* **valid**: The verification has been successfully completed.\n\n* **rejected**: Adyen has verified the information, but found reasons to not allow the capability.\n", - "enum" : [ - "invalid", - "pending", - "rejected", - "valid" - ], - "readOnly" : true, - "type" : "string" - } - }, - "type" : "object" - }, - "AccountHolderInfo" : { - "additionalProperties" : false, - "properties" : { - "balancePlatform" : { - "description" : "The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms.", - "type" : "string" - }, - "capabilities" : { - "additionalProperties" : { - "$ref" : "#/components/schemas/AccountHolderCapability" + "createSweep-push-priorities" : { + "$ref" : "#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-push-priorities-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "2", + "x-sortIndex" : 5, + "x-methodName" : "createSweep" + } + }, + "/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}" : { + "get" : { + "tags" : [ "Balance accounts" ], + "summary" : "Get a sweep", + "description" : "Returns a sweep.", + "operationId" : "get-balanceAccounts-balanceAccountId-sweeps-sweepId", + "parameters" : [ { + "name" : "balanceAccountId", + "in" : "path", + "description" : "The unique identifier of the balance account.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "sweepId", + "in" : "path", + "description" : "The unique identifier of the sweep.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/SweepConfigurationV2" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-balanceAccounts-balanceAccountId-sweeps-sweepId-success-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "2", + "x-sortIndex" : 8, + "x-methodName" : "getSweep" + }, + "delete" : { + "tags" : [ "Balance accounts" ], + "summary" : "Delete a sweep", + "description" : "Deletes a sweep for a balance account.", + "operationId" : "delete-balanceAccounts-balanceAccountId-sweeps-sweepId", + "parameters" : [ { + "name" : "balanceAccountId", + "in" : "path", + "description" : "The unique identifier of the balance account.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "sweepId", + "in" : "path", + "description" : "The unique identifier of the sweep.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "204" : { + "description" : "No Content - look at the actual response code for the status of the request. " + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "2", + "x-sortIndex" : 9, + "x-methodName" : "deleteSweep" + }, + "patch" : { + "tags" : [ "Balance accounts" ], + "summary" : "Update a sweep", + "description" : "Updates a sweep. When updating a sweep resource, note that if a request parameter is not provided, the parameter is left unchanged.", + "operationId" : "patch-balanceAccounts-balanceAccountId-sweeps-sweepId", + "parameters" : [ { + "name" : "balanceAccountId", + "in" : "path", + "description" : "The unique identifier of the balance account.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "sweepId", + "in" : "path", + "description" : "The unique identifier of the sweep.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UpdateSweepConfigurationV2" + }, + "examples" : { + "updateSweep-status" : { + "$ref" : "#/components/examples/patch-balanceAccounts-balanceAccountId-sweeps-sweepId-updateSweep-status" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/SweepConfigurationV2" + }, + "examples" : { + "updateSweep-status" : { + "$ref" : "#/components/examples/patch-balanceAccounts-balanceAccountId-sweeps-sweepId-updateSweep-status-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "2", + "x-sortIndex" : 6, + "x-methodName" : "updateSweep" + } + }, + "/balanceAccounts/{id}" : { + "get" : { + "tags" : [ "Balance accounts" ], + "summary" : "Get a balance account", + "description" : "Returns a balance account and its balances for the default currency and other currencies with a non-zero balance.", + "operationId" : "get-balanceAccounts-id", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the balance account.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BalanceAccount" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-balanceAccounts-id-success-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 3, + "x-methodName" : "getBalanceAccount" + }, + "patch" : { + "tags" : [ "Balance accounts" ], + "summary" : "Update a balance account", + "description" : "Updates a balance account.", + "operationId" : "patch-balanceAccounts-id", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the balance account.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BalanceAccountUpdateRequest" + }, + "examples" : { + "updateBalanceAccount" : { + "$ref" : "#/components/examples/patch-balanceAccounts-id-updateBalanceAccount" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BalanceAccount" + }, + "examples" : { + "updateBalanceAccount" : { + "$ref" : "#/components/examples/patch-balanceAccounts-id-updateBalanceAccount-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 2, + "x-methodName" : "updateBalanceAccount" + } + }, + "/balanceAccounts/{id}/paymentInstruments" : { + "get" : { + "tags" : [ "Balance accounts" ], + "summary" : "Get payment instruments linked to a balance account", + "description" : "Returns a paginated list of the payment instruments associated with a balance account. \n\nTo fetch multiple pages, use the query parameters.For example, to limit the page to 3 payment instruments which are in active status and to skip the first 6, use `/balanceAccounts/{id}/paymentInstruments?limit=3&offset=6&status=active`.", + "operationId" : "get-balanceAccounts-id-paymentInstruments", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the balance account.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "offset", + "in" : "query", + "description" : "The number of items that you want to skip.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "limit", + "in" : "query", + "description" : "The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "status", + "in" : "query", + "description" : "The status of the payment instruments that you want to get. By default, the response includes payment instruments with any status.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaginatedPaymentInstrumentsResponse" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-balanceAccounts-id-paymentInstruments-success-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 4, + "x-methodName" : "getPaymentInstrumentsLinkedToBalanceAccount" + } + }, + "/balanceAccounts/{id}/transactionRules" : { + "get" : { + "tags" : [ "Balance accounts" ], + "summary" : "Get all transaction rules for a balance account", + "description" : "Returns a list of transaction rules associated with a balance account.", + "operationId" : "get-balanceAccounts-id-transactionRules", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the balance account.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/TransactionRulesResponse" + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 18, + "x-methodName" : "getAllTransactionRulesForBalanceAccount" + } + }, + "/balancePlatforms/{id}" : { + "get" : { + "tags" : [ "Platform" ], + "summary" : "Get a balance platform", + "description" : "Returns a balance platform.", + "operationId" : "get-balancePlatforms-id", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the balance platform.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BalancePlatform" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-balancePlatforms-id-success-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 1, + "x-methodName" : "getBalancePlatform" + } + }, + "/balancePlatforms/{id}/accountHolders" : { + "get" : { + "tags" : [ "Platform" ], + "summary" : "Get all account holders under a balance platform", + "description" : "Returns a paginated list of all the account holders that belong to the balance platform. To fetch multiple pages, use the query parameters. \n\nFor example, to limit the page to 5 account holders and to skip the first 20, use `/balancePlatforms/{id}/accountHolders?limit=5&offset=20`.", + "operationId" : "get-balancePlatforms-id-accountHolders", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the balance platform.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "offset", + "in" : "query", + "description" : "The number of items that you want to skip.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "limit", + "in" : "query", + "description" : "The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaginatedAccountHoldersResponse" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-balancePlatforms-id-accountHolders-success-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 2, + "x-methodName" : "getAllAccountHoldersUnderBalancePlatform" + } + }, + "/balancePlatforms/{id}/transactionRules" : { + "get" : { + "tags" : [ "Platform" ], + "summary" : "Get all transaction rules for a balance platform", + "description" : "Returns a list of transaction rules associated with a balance platform.", + "operationId" : "get-balancePlatforms-id-transactionRules", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the balance platform.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/TransactionRulesResponse" + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 5, + "x-methodName" : "getAllTransactionRulesForBalancePlatform" + } + }, + "/cardorders" : { + "get" : { + "tags" : [ "Card orders" ], + "summary" : "Get a list of card orders", + "description" : "Returns a paginated list of card orders.", + "operationId" : "get-cardorders", + "parameters" : [ { + "name" : "id", + "in" : "query", + "description" : "The unique identifier of the card order. ", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "cardManufacturingProfileId", + "in" : "query", + "description" : "The unique identifier of the card manufacturer profile.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "status", + "in" : "query", + "description" : "The status of the card order.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "txVariantCode", + "in" : "query", + "description" : "The unique code of the card manufacturer profile.\n\nPossible values: **mcmaestro**, **mc**, **visa**, **mcdebit**. ", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "createdSince", + "in" : "query", + "description" : "Only include card orders that have been created on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "createdUntil", + "in" : "query", + "description" : "Only include card orders that have been created on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "lockedSince", + "in" : "query", + "description" : "Only include card orders that have been locked on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "lockedUntil", + "in" : "query", + "description" : "Only include card orders that have been locked on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string", + "format" : "date-time" + } + }, { + "name" : "serviceCenter", + "in" : "query", + "description" : "The service center at which the card is issued. The value is case-sensitive. ", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "offset", + "in" : "query", + "description" : "Specifies the position of an element in a list of card orders. The response includes a list of card orders that starts at the specified offset.\n\n**Default:** 0, which means that the response contains all the elements in the list of card orders.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "limit", + "in" : "query", + "description" : "The number of card orders returned per page. **Default:** 10.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaginatedGetCardOrderResponse" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-cardorders-success-200" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 1, + "x-methodName" : "listCardOrders" + } + }, + "/cardorders/{id}/items" : { + "get" : { + "tags" : [ "Card orders" ], + "summary" : "Get card order items", + "description" : "Returns the item list of a specific card order.", + "operationId" : "get-cardorders-id-items", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the card order.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "offset", + "in" : "query", + "description" : "Specifies the position of an element in a list of card orders. The response includes a list of card order items that starts at the specified offset.\n\n**Default:** 0, which means that the response contains all the elements in the list of card order items.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "limit", + "in" : "query", + "description" : "The number of card order items returned per page. **Default:** 10.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaginatedGetCardOrderItemResponse" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-cardorders-id-items-success-200" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 2, + "x-methodName" : "getCardOrderItems" + } + }, + "/grantAccounts/{id}" : { + "get" : { + "tags" : [ "Grant accounts" ], + "summary" : "Get a grant account", + "description" : "Returns the details of the [grant account](https://docs.adyen.com/platforms/capital#grant-account).", + "operationId" : "get-grantAccounts-id", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the grant account.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/CapitalGrantAccount" + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "deprecated" : true, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-deprecatedInVersion" : "2", + "x-deprecatedMessage" : "Use the `/grantAccounts/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead.", + "x-addedInVersion" : "1", + "x-sortIndex" : 1, + "x-methodName" : "getGrantAccount" + } + }, + "/grantOffers" : { + "get" : { + "tags" : [ "Grant offers" ], + "summary" : "Get all available grant offers", + "description" : "Returns a list of all [grant offers](https://docs.adyen.com/platforms/capital#grant-offers) available for `accountHolderId` specified as a query parameter.", + "operationId" : "get-grantOffers", + "parameters" : [ { + "name" : "accountHolderId", + "in" : "query", + "description" : "The unique identifier of the grant account.", + "required" : true, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GrantOffers" + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "deprecated" : true, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-deprecatedInVersion" : "2", + "x-deprecatedMessage" : "Use the `/grantOffers` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) instead.", + "x-addedInVersion" : "2", + "x-sortIndex" : 1, + "x-methodName" : "getAllAvailableGrantOffers" + } + }, + "/grantOffers/{grantOfferId}" : { + "get" : { + "tags" : [ "Grant offers" ], + "summary" : "Get a grant offer", + "description" : "Returns the details of a single grant offer.", + "operationId" : "get-grantOffers-grantOfferId", + "parameters" : [ { + "name" : "grantOfferId", + "in" : "path", + "description" : "The unique identifier of the grant offer.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GrantOffer" + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "deprecated" : true, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-deprecatedInVersion" : "2", + "x-deprecatedMessage" : "Use the `/grantOffers/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead.", + "x-addedInVersion" : "2", + "x-sortIndex" : 1, + "x-methodName" : "getGrantOffer" + } + }, + "/networkTokens/{networkTokenId}" : { + "get" : { + "tags" : [ "Network tokens" ], + "summary" : "Get a network token", + "description" : "Returns the details of a network token.", + "operationId" : "get-networkTokens-networkTokenId", + "parameters" : [ { + "name" : "networkTokenId", + "in" : "path", + "description" : "The unique identifier of the network token.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/GetNetworkTokenResponse" + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 1, + "x-methodName" : "getNetworkToken" + }, + "patch" : { + "tags" : [ "Network tokens" ], + "summary" : "Update a network token", + "description" : "Updates the status of the network token.", + "operationId" : "patch-networkTokens-networkTokenId", + "parameters" : [ { + "name" : "networkTokenId", + "in" : "path", + "description" : "The unique identifier of the network token.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UpdateNetworkTokenRequest" + } + } + } + }, + "responses" : { + "202" : { + "description" : "No Content - look at the actual response code for the status of the request. " + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 2, + "x-methodName" : "updateNetworkToken" + } + }, + "/paymentInstrumentGroups" : { + "post" : { + "tags" : [ "Payment instrument groups" ], + "summary" : "Create a payment instrument group", + "description" : "Creates a payment instrument group to associate and group payment instrument resources together. You can apply a transaction rule to a payment instrument group.", + "operationId" : "post-paymentInstrumentGroups", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentInstrumentGroupInfo" + }, + "examples" : { + "createPaymentInstrumentGroups" : { + "$ref" : "#/components/examples/post-paymentInstrumentGroups-createPaymentInstrumentGroups" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentInstrumentGroup" + }, + "examples" : { + "createPaymentInstrumentGroups" : { + "$ref" : "#/components/examples/post-paymentInstrumentGroups-createPaymentInstrumentGroups-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 1, + "x-methodName" : "createPaymentInstrumentGroup" + } + }, + "/paymentInstrumentGroups/{id}" : { + "get" : { + "tags" : [ "Payment instrument groups" ], + "summary" : "Get a payment instrument group", + "description" : "Returns the details of a payment instrument group.", + "operationId" : "get-paymentInstrumentGroups-id", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the payment instrument group.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentInstrumentGroup" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-paymentInstrumentGroups-id-success-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 2, + "x-methodName" : "getPaymentInstrumentGroup" + } + }, + "/paymentInstrumentGroups/{id}/transactionRules" : { + "get" : { + "tags" : [ "Payment instrument groups" ], + "summary" : "Get all transaction rules for a payment instrument group", + "description" : "Returns a list of all the transaction rules associated with a payment instrument group.", + "operationId" : "get-paymentInstrumentGroups-id-transactionRules", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the payment instrument group.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/TransactionRulesResponse" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-paymentInstrumentGroups-id-transactionRules-success-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 3, + "x-methodName" : "getAllTransactionRulesForPaymentInstrumentGroup" + } + }, + "/paymentInstruments" : { + "post" : { + "tags" : [ "Payment instruments" ], + "summary" : "Create a payment instrument", + "description" : "Creates a payment instrument to issue a physical card, a virtual card, or a business account to your user.\n\n For more information, refer to [Issue cards](https://docs.adyen.com/issuing/create-cards) or [Issue business accounts](https://docs.adyen.com/platforms/business-accounts).", + "operationId" : "post-paymentInstruments", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentInstrumentInfo" + }, + "examples" : { + "createBusinessAccountNL" : { + "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountNL" + }, + "createBusinessAccountNL-DELocalIBAN" : { + "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountNL-DELocalIBAN" + }, + "createBusinessAccountNL-FRLocalIBAN" : { + "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountNL-FRLocalIBAN" + }, + "createBusinessAccountUK" : { + "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountUK" + }, + "createBusinessAccountUS" : { + "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountUS" + }, + "createPhysicalCard" : { + "$ref" : "#/components/examples/post-paymentInstruments-createPhysicalCard" + }, + "createVirtualCard" : { + "$ref" : "#/components/examples/post-paymentInstruments-createVirtualCard" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentInstrument" + }, + "examples" : { + "createBusinessAccountNL" : { + "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountNL-200" }, - "description" : "Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.", - "type" : "object" - }, - "contactDetails" : { - "deprecated" : true, - "description" : "Contact details of the account holder.", - "$ref" : "#/components/schemas/ContactDetails" - }, - "description" : { - "description" : "Your description for the account holder.", - "maxLength" : 300, - "type" : "string" - }, - "legalEntityId" : { - "description" : "The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.", - "type" : "string" - }, - "metadata" : { - "additionalProperties" : { - "type" : "string" + "createBusinessAccountNL-DELocalIBAN" : { + "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountNL-DELocalIBAN-200" }, - "description" : "A set of key and value pairs for general use.\nThe keys do not have specific names and may be used for storing miscellaneous data as desired.\n> Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.", - "type" : "object" - }, - "migratedAccountHolderCode" : { - "description" : "The unique identifier of the migrated account holder in the classic integration.", - "readOnly" : true, - "type" : "string" - }, - "reference" : { - "description" : "Your reference for the account holder.", - "maxLength" : 150, - "type" : "string" - }, - "timeZone" : { - "description" : "The time zone of the account holder. For example, **Europe/Amsterdam**.\nDefaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).", - "type" : "string" - } - }, - "required" : [ - "legalEntityId" - ], - "type" : "object" - }, - "AccountHolderUpdateRequest" : { - "additionalProperties" : false, - "properties" : { - "balancePlatform" : { - "description" : "The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms.", - "type" : "string" - }, - "capabilities" : { - "additionalProperties" : { - "$ref" : "#/components/schemas/AccountHolderCapability" + "createBusinessAccountNL-FRLocalIBAN" : { + "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountNL-FRLocalIBAN-200" }, - "description" : "Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability.", - "type" : "object" - }, - "contactDetails" : { - "deprecated" : true, - "description" : "Contact details of the account holder.", - "$ref" : "#/components/schemas/ContactDetails" - }, - "description" : { - "description" : "Your description for the account holder.", - "maxLength" : 300, - "type" : "string" - }, - "metadata" : { - "additionalProperties" : { - "type" : "string" + "createBusinessAccountUK" : { + "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountUK-200" }, - "description" : "A set of key and value pairs for general use.\nThe keys do not have specific names and may be used for storing miscellaneous data as desired.\n> Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.", - "type" : "object" - }, - "migratedAccountHolderCode" : { - "description" : "The unique identifier of the migrated account holder in the classic integration.", - "readOnly" : true, - "type" : "string" - }, - "primaryBalanceAccount" : { - "description" : "The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request.", - "type" : "string" - }, - "reference" : { - "description" : "Your reference for the account holder.", - "maxLength" : 150, - "type" : "string" - }, - "status" : { - "description" : "The status of the account holder.\n\nPossible values: \n\n * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. \n\n * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. \n\n* **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed.", - "enum" : [ - "active", - "closed", - "suspended" - ], - "type" : "string" - }, - "timeZone" : { - "description" : "The time zone of the account holder. For example, **Europe/Amsterdam**.\nDefaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).", - "type" : "string" - }, - "verificationDeadlines" : { - "description" : "List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.", - "items" : { - "$ref" : "#/components/schemas/VerificationDeadline" + "createBusinessAccountUS" : { + "$ref" : "#/components/examples/post-paymentInstruments-createBusinessAccountUS-200" }, - "readOnly" : true, - "type" : "array" - } - }, - "type" : "object" - }, - "AccountSupportingEntityCapability" : { - "additionalProperties" : false, - "properties" : { - "allowed" : { - "description" : "Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability.", - "readOnly" : true, - "type" : "boolean" - }, - "allowedLevel" : { - "description" : "The capability level that is allowed for the account holder.\n\nPossible values: **notApplicable**, **low**, **medium**, **high**.", - "enum" : [ - "high", - "low", - "medium", - "notApplicable" - ], - "readOnly" : true, - "type" : "string" - }, - "enabled" : { - "description" : "Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder.", - "type" : "boolean" - }, - "id" : { - "description" : "The ID of the supporting entity.", - "readOnly" : true, - "type" : "string" - }, - "requested" : { - "description" : "Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field.", - "type" : "boolean" - }, - "requestedLevel" : { - "description" : "The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring.\n\nPossible values: **notApplicable**, **low**, **medium**, **high**.", - "enum" : [ - "high", - "low", - "medium", - "notApplicable" - ], - "type" : "string" - }, - "verificationStatus" : { - "description" : "The status of the verification checks for the supporting entity capability.\n\nPossible values:\n\n* **pending**: Adyen is running the verification.\n\n* **invalid**: The verification failed. Check if the `errors` array contains more information.\n\n* **valid**: The verification has been successfully completed.\n\n* **rejected**: Adyen has verified the information, but found reasons to not allow the capability.\n", - "enum" : [ - "invalid", - "pending", - "rejected", - "valid" - ], - "readOnly" : true, - "type" : "string" - } - }, - "type" : "object" - }, - "ActiveNetworkTokensRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "description" : "The number of tokens.", - "format" : "int32", - "type" : "integer" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "AdditionalBankIdentification" : { - "additionalProperties" : false, - "properties" : { - "code" : { - "description" : "The value of the additional bank identification.", - "type" : "string" - }, - "type" : { - "description" : "The type of additional bank identification, depending on the country.\n\nPossible values:\n\n * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces\n * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces.", - "enum" : [ - "gbSortCode", - "usRoutingNumber" - ], - "type" : "string" - } - }, - "type" : "object" - }, - "Address" : { - "additionalProperties" : false, - "properties" : { - "city" : { - "description" : "The name of the city. Maximum length: 3000 characters.", - "maxLength" : 3000, - "type" : "string" - }, - "country" : { - "description" : "The two-character ISO-3166-1 alpha-2 country code. For example, **US**.\n> If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`.", - "type" : "string" - }, - "houseNumberOrName" : { - "description" : "The number or name of the house. Maximum length: 3000 characters.", - "maxLength" : 3000, - "type" : "string" - }, - "postalCode" : { - "description" : "A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries.", - "type" : "string" - }, - "stateOrProvince" : { - "description" : "The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada.\n> Required for the US and Canada.", - "type" : "string" - }, - "street" : { - "description" : "The name of the street. Maximum length: 3000 characters.\n> The house number should not be included in this field; it should be separately provided via `houseNumberOrName`.", - "maxLength" : 3000, - "type" : "string" - } - }, - "required" : [ - "street", - "houseNumberOrName", - "city", - "postalCode", - "country" - ], - "type" : "object" - }, - "AddressRequirement" : { - "additionalProperties" : false, - "properties" : { - "description" : { - "description" : "Specifies the required address related fields for a particular route.", - "type" : "string" - }, - "requiredAddressFields" : { - "description" : "List of address fields.", - "items" : { - "enum" : [ - "city", - "country", - "line1", - "postalCode", - "stateOrProvince" - ], - "type" : "string" + "createPhysicalCard" : { + "$ref" : "#/components/examples/post-paymentInstruments-createPhysicalCard-200" }, - "type" : "array" - }, - "type" : { - "default" : "addressRequirement", - "description" : "**addressRequirement**", - "enum" : [ - "addressRequirement" - ], - "type" : "string" - } - }, - "required" : [ - "type" - ], - "type" : "object" - }, - "Amount" : { - "additionalProperties" : false, - "properties" : { - "currency" : { - "description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).", - "maxLength" : 3, - "minLength" : 3, - "type" : "string" - }, - "value" : { - "description" : "The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).", - "format" : "int64", - "type" : "integer" - } - }, - "required" : [ - "value", - "currency" - ], - "type" : "object" - }, - "AmountMinMaxRequirement" : { - "additionalProperties" : false, - "properties" : { - "description" : { - "description" : "Specifies the eligible amounts for a particular route.", - "type" : "string" - }, - "max" : { - "description" : "Maximum amount.", - "format" : "int64", - "type" : "integer" - }, - "min" : { - "description" : "Minimum amount.", - "format" : "int64", - "type" : "integer" - }, - "type" : { - "default" : "amountMinMaxRequirement", - "description" : "**amountMinMaxRequirement**", - "enum" : [ - "amountMinMaxRequirement" - ], - "type" : "string" - } - }, - "required" : [ - "type" - ], - "type" : "object" - }, - "AmountNonZeroDecimalsRequirement" : { - "additionalProperties" : false, - "properties" : { - "description" : { - "description" : "Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers.", - "type" : "string" - }, - "type" : { - "default" : "amountNonZeroDecimalsRequirement", - "description" : "**amountNonZeroDecimalsRequirement**", - "enum" : [ - "amountNonZeroDecimalsRequirement" - ], - "type" : "string" - } - }, - "required" : [ - "type" - ], - "type" : "object" - }, - "AssociationDelegatedAuthenticationData" : { - "additionalProperties" : false, - "properties" : { - "sdkOutput" : { - "description" : "A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK.", - "maxLength" : 20000, - "type" : "string" - } - }, - "required" : [ - "sdkOutput" - ], - "type" : "object" - }, - "AssociationFinaliseRequest" : { - "additionalProperties" : false, - "properties" : { - "ids" : { - "description" : "The list of unique identifiers of the resources that you are associating with the SCA device.\n\nMaximum: 5 strings.", - "items" : { - "type" : "string" + "createVirtualCard" : { + "$ref" : "#/components/examples/post-paymentInstruments-createVirtualCard-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 1, + "x-methodName" : "createPaymentInstrument" + } + }, + "/paymentInstruments/reveal" : { + "post" : { + "tags" : [ "Payment instruments" ], + "summary" : "Reveal the data of a payment instrument", + "description" : "Returns the encrypted data of a specified payment instrument. These data include:\n\n- The primary account number (PAN)\n- The card verification code (CVC)\n- The expiry date\n\nYou can decrypt the data to reveal it in your user interface.\n\nTo make this request, your API credential must have the following role:\n* Bank Issuing PAN Reveal Webservice role", + "operationId" : "post-paymentInstruments-reveal", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentInstrumentRevealRequest" + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentInstrumentRevealResponse" + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 4, + "x-methodName" : "revealDataOfPaymentInstrument" + } + }, + "/paymentInstruments/{id}" : { + "get" : { + "tags" : [ "Payment instruments" ], + "summary" : "Get a payment instrument", + "description" : "Returns the details of a payment instrument.", + "operationId" : "get-paymentInstruments-id", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the payment instrument.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentInstrument" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-paymentInstruments-id-success-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 3, + "x-methodName" : "getPaymentInstrument" + }, + "patch" : { + "tags" : [ "Payment instruments" ], + "summary" : "Update a payment instrument", + "description" : "Updates a payment instrument. Once a payment instrument is already active, you can only update its status. However, for cards created with **inactive** status, you can still update the balance account associated with the card.", + "operationId" : "patch-paymentInstruments-id", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the payment instrument.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentInstrumentUpdateRequest" + }, + "examples" : { + "updatePaymentInstrumentBalanceAccount" : { + "$ref" : "#/components/examples/patch-paymentInstruments-id-updatePaymentInstrumentBalanceAccount" + }, + "updatePaymentInstrumentStatus" : { + "$ref" : "#/components/examples/patch-paymentInstruments-id-updatePaymentInstrumentStatus" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/UpdatePaymentInstrument" + }, + "examples" : { + "updatePaymentInstrumentBalanceAccount" : { + "$ref" : "#/components/examples/patch-paymentInstruments-id-updatePaymentInstrumentBalanceAccount-200" }, - "maxLength" : 5, - "type" : "array" - }, - "strongCustomerAuthentication" : { - "description" : "Contains authentication information required to associate the resource with the SCA device.", - "$ref" : "#/components/schemas/AssociationDelegatedAuthenticationData" - }, - "type" : { - "description" : "The type of resource that you are associating with the SCA device.\n\nPossible value: **PaymentInstrument**", - "enum" : [ - "PaymentInstrument" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "ids", - "strongCustomerAuthentication" - ], - "type" : "object" - }, - "AssociationFinaliseResponse" : { - "additionalProperties" : false, - "properties" : { - "deviceId" : { - "description" : "The unique identifier of the SCA device you associated with a resource.", - "type" : "string" - }, - "ids" : { - "description" : "The list of unique identifiers of the resources that you associated with the SCA device.", - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "type" : { - "description" : "The type of resource that you associated with the SCA device.", - "enum" : [ - "PAYMENT_INSTRUMENT" - ], - "type" : "string" - } - }, - "required" : [ - "type" - ], - "type" : "object" - }, - "AssociationInitiateRequest" : { - "additionalProperties" : false, - "properties" : { - "ids" : { - "description" : "The list of unique identifiers of the resources that you are associating with the SCA device.\n\nMaximum: 5 strings.", - "items" : { - "type" : "string" - }, - "maxLength" : 5, - "type" : "array" - }, - "type" : { - "description" : "The type of resource that you are associating with the SCA device.\n\nPossible value: **PaymentInstrument**", - "enum" : [ - "PaymentInstrument" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "ids" - ], - "type" : "object" - }, - "AssociationInitiateResponse" : { - "additionalProperties" : false, - "properties" : { - "sdkInput" : { - "description" : "A string that you must pass to the authentication SDK to continue with the association process.", - "maxLength" : 20000, - "type" : "string" - } - }, - "type" : "object" - }, - "Authentication" : { - "additionalProperties" : false, - "properties" : { - "email" : { - "description" : "The email address where the one-time password (OTP) is sent.", - "type" : "string" - }, - "password" : { - "description" : "The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters.\n\n* Characters between **a-z**, **A-Z**, and **0-9**\n\n* Special characters: **äöüßÄÖÜ+-*/ç%()=?!~#'\",;:$&àùòâôûáúó**", - "maxLength" : 30, - "minLength" : 1, - "type" : "string" - }, - "phone" : { - "description" : "The phone number where the one-time password (OTP) is sent.\n\nThis object must have:\n\n* A `type` set to **mobile**.\n\n* A `number` with a valid country code.\n\n* A `number` with more than 4 digits, excluding the country code.\n\n>Make sure to verify that the card user owns the phone number.", - "$ref" : "#/components/schemas/Phone" - } - }, - "type" : "object" - }, - "BRLocalAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The bank account number, without separators or whitespace.", - "maxLength" : 10, - "minLength" : 1, - "type" : "string" - }, - "bankCode" : { - "description" : "The 3-digit bank code, with leading zeros.", - "maxLength" : 3, - "minLength" : 3, - "type" : "string" - }, - "branchNumber" : { - "description" : "The bank account branch number, without separators or whitespace.", - "maxLength" : 4, - "minLength" : 1, - "type" : "string" - }, - "ispb" : { - "description" : "The 8-digit ISPB, with leading zeros.", - "maxLength" : 8, - "minLength" : 8, - "type" : "string" - }, - "type" : { - "default" : "brLocal", - "description" : "**brLocal**", - "enum" : [ - "brLocal" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "branchNumber", - "accountNumber", - "bankCode" - ], - "type" : "object" - }, - "Balance" : { - "additionalProperties" : false, - "properties" : { - "available" : { - "description" : "The balance available for use.", - "format" : "int64", - "type" : "integer" - }, - "balance" : { - "description" : "The sum of the transactions that have already been settled.", - "format" : "int64", - "type" : "integer" - }, - "currency" : { - "description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.", - "type" : "string" - }, - "pending" : { - "description" : "The sum of the transactions that will be settled in the future.", - "format" : "int64", - "type" : "integer" - }, - "reserved" : { - "description" : "The balance currently held in reserve.", - "format" : "int64", - "type" : "integer" - } - }, - "required" : [ - "currency", - "balance", - "reserved", - "available" - ], - "type" : "object" - }, - "BalanceAccount" : { - "additionalProperties" : false, - "properties" : { - "accountHolderId" : { - "description" : "The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account.", - "type" : "string" - }, - "balances" : { - "description" : "List of balances with the amount and currency.", - "items" : { - "$ref" : "#/components/schemas/Balance" - }, - "type" : "array" - }, - "defaultCurrencyCode" : { - "description" : "The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account.\nThe default value is **EUR**.\n> After a balance account is created, you cannot change its default currency.", - "type" : "string" - }, - "description" : { - "description" : "A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder.", - "maxLength" : 300, - "type" : "string" - }, - "id" : { - "description" : "The unique identifier of the balance account.", - "type" : "string" - }, - "metadata" : { - "additionalProperties" : { - "type" : "string" - }, - "description" : "A set of key and value pairs for general use.\nThe keys do not have specific names and may be used for storing miscellaneous data as desired.\n> Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.", - "type" : "object" - }, - "migratedAccountCode" : { - "description" : "The unique identifier of the account of the migrated account holder in the classic integration.", - "readOnly" : true, - "type" : "string" - }, - "platformPaymentConfiguration" : { - "description" : "Contains key-value pairs to the configure the settlement model in a balance account.", - "$ref" : "#/components/schemas/PlatformPaymentConfiguration" - }, - "reference" : { - "description" : "Your reference for the balance account, maximum 150 characters.", - "maxLength" : 150, - "type" : "string" - }, - "status" : { - "description" : "The status of the balance account, set to **active** by default. \n", - "enum" : [ - "active", - "closed", - "inactive", - "suspended" - ], - "type" : "string" - }, - "timeZone" : { - "description" : "The time zone of the balance account. For example, **Europe/Amsterdam**.\nDefaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).", - "type" : "string" - } - }, - "required" : [ - "accountHolderId", - "id" - ], - "type" : "object" - }, - "BalanceAccountBase" : { - "additionalProperties" : false, - "properties" : { - "accountHolderId" : { - "description" : "The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account.", - "type" : "string" - }, - "defaultCurrencyCode" : { - "description" : "The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account.\nThe default value is **EUR**.\n> After a balance account is created, you cannot change its default currency.", - "type" : "string" - }, - "description" : { - "description" : "A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder.", - "maxLength" : 300, - "type" : "string" - }, - "id" : { - "description" : "The unique identifier of the balance account.", - "type" : "string" - }, - "metadata" : { - "additionalProperties" : { - "type" : "string" - }, - "description" : "A set of key and value pairs for general use.\nThe keys do not have specific names and may be used for storing miscellaneous data as desired.\n> Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.", - "type" : "object" - }, - "migratedAccountCode" : { - "description" : "The unique identifier of the account of the migrated account holder in the classic integration.", - "readOnly" : true, - "type" : "string" - }, - "platformPaymentConfiguration" : { - "description" : "Contains key-value pairs to the configure the settlement model in a balance account.", - "$ref" : "#/components/schemas/PlatformPaymentConfiguration" - }, - "reference" : { - "description" : "Your reference for the balance account, maximum 150 characters.", - "maxLength" : 150, - "type" : "string" - }, - "status" : { - "description" : "The status of the balance account, set to **active** by default. \n", - "enum" : [ - "active", - "closed", - "inactive", - "suspended" - ], - "type" : "string" - }, - "timeZone" : { - "description" : "The time zone of the balance account. For example, **Europe/Amsterdam**.\nDefaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).", - "type" : "string" - } - }, - "required" : [ - "accountHolderId", - "id" - ], - "type" : "object" - }, - "BalanceAccountInfo" : { - "additionalProperties" : false, - "properties" : { - "accountHolderId" : { - "description" : "The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account.", - "type" : "string" - }, - "defaultCurrencyCode" : { - "description" : "The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account.\nThe default value is **EUR**.\n> After a balance account is created, you cannot change its default currency.", - "type" : "string" - }, - "description" : { - "description" : "A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder.", - "maxLength" : 300, - "type" : "string" - }, - "metadata" : { - "additionalProperties" : { - "type" : "string" - }, - "description" : "A set of key and value pairs for general use.\nThe keys do not have specific names and may be used for storing miscellaneous data as desired.\n> Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.", - "type" : "object" - }, - "migratedAccountCode" : { - "description" : "The unique identifier of the account of the migrated account holder in the classic integration.", - "readOnly" : true, - "type" : "string" - }, - "platformPaymentConfiguration" : { - "description" : "Contains key-value pairs to the configure the settlement model in a balance account.", - "$ref" : "#/components/schemas/PlatformPaymentConfiguration" - }, - "reference" : { - "description" : "Your reference for the balance account, maximum 150 characters.", - "maxLength" : 150, - "type" : "string" - }, - "timeZone" : { - "description" : "The time zone of the balance account. For example, **Europe/Amsterdam**.\nDefaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).", - "type" : "string" - } - }, - "required" : [ - "accountHolderId" - ], - "type" : "object" - }, - "BalanceAccountUpdateRequest" : { - "additionalProperties" : false, - "properties" : { - "accountHolderId" : { - "description" : "The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account.", - "type" : "string" - }, - "description" : { - "description" : "A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder.", - "maxLength" : 300, - "type" : "string" - }, - "metadata" : { - "additionalProperties" : { - "type" : "string" - }, - "description" : "A set of key and value pairs for general use.\nThe keys do not have specific names and may be used for storing miscellaneous data as desired.\n> Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.", - "type" : "object" - }, - "platformPaymentConfiguration" : { - "description" : "Contains key-value pairs to the configure the settlement model in a balance account.", - "$ref" : "#/components/schemas/PlatformPaymentConfiguration" - }, - "reference" : { - "description" : "Your reference to the balance account.", - "maxLength" : 150, - "type" : "string" - }, - "status" : { - "description" : "The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**.\n\nPossible values: **active**, **closed**, **suspended**.", - "enum" : [ - "active", - "closed", - "inactive", - "suspended" - ], - "type" : "string" - }, - "timeZone" : { - "description" : "The time zone of the balance account. For example, **Europe/Amsterdam**.\nDefaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).", - "type" : "string" - } - }, - "type" : "object" - }, - "BalancePlatform" : { - "additionalProperties" : false, - "properties" : { - "description" : { - "description" : "Your description of the balance platform.", - "maxLength" : 300, - "type" : "string" - }, - "id" : { - "description" : "The unique identifier of the balance platform.", - "type" : "string" - }, - "status" : { - "description" : "The status of the balance platform.\n\nPossible values: **Active**, **Inactive**, **Closed**, **Suspended**.", - "type" : "string" - } - }, - "required" : [ - "id" - ], - "type" : "object" - }, - "BalanceSweepConfigurationsResponse" : { - "additionalProperties" : false, - "properties" : { - "hasNext" : { - "description" : "Indicates whether there are more items on the next page.", - "type" : "boolean" - }, - "hasPrevious" : { - "description" : "Indicates whether there are more items on the previous page.", - "type" : "boolean" - }, - "sweeps" : { - "description" : "List of sweeps associated with the balance account.", - "items" : { - "$ref" : "#/components/schemas/SweepConfigurationV2" - }, - "type" : "array" - } - }, - "required" : [ - "sweeps", - "hasPrevious", - "hasNext" - ], - "type" : "object" - }, - "BankAccount" : { - "additionalProperties" : false, - "properties" : { - "accountIdentification" : { - "description" : "Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer.", - "oneOf" : [ - { - "$ref" : "#/components/schemas/AULocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/BRLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/CALocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/CZLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/DKLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/HKLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/HULocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/IbanAccountIdentification" - }, - { - "$ref" : "#/components/schemas/NOLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/NZLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/NumberAndBicAccountIdentification" - }, - { - "$ref" : "#/components/schemas/PLLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/SELocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/SGLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/UKLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/USLocalAccountIdentification" - } - ] - } - }, - "required" : [ - "accountIdentification" - ], - "type" : "object" - }, - "BankAccountDetails" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The bank account number, without separators or whitespace.", - "type" : "string" - }, - "accountType" : { - "default" : "checking", - "description" : "The bank account type.\n\nPossible values: **checking** or **savings**. Defaults to **checking**.", - "type" : "string" - }, - "branchNumber" : { - "description" : "The bank account branch number, without separators or whitespace", - "type" : "string" - }, - "formFactor" : { - "default" : "physical", - "description" : "Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. \n\nAdyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.", - "type" : "string" - }, - "iban" : { - "description" : "The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.", - "type" : "string" - }, - "routingNumber" : { - "description" : "The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.", - "type" : "string" - }, - "sortCode" : { - "description" : "The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.", - "type" : "string" - }, - "type" : { - "default" : "iban", - "description" : "**iban** or **usLocal** or **ukLocal**", - "type" : "string" - } - }, - "required" : [ - "type" - ], - "type" : "object" - }, - "BankAccountIdentificationTypeRequirement" : { - "additionalProperties" : false, - "properties" : { - "bankAccountIdentificationTypes" : { - "description" : "List of bank account identification types: eg.; [iban , numberAndBic]", - "items" : { - "enum" : [ - "auLocal", - "brLocal", - "caLocal", - "czLocal", - "dkLocal", - "hkLocal", - "huLocal", - "iban", - "legacy", - "noLocal", - "numberAndBic", - "nzLocal", - "plLocal", - "seLocal", - "sgLocal", - "ukLocal", - "usLocal" - ], - "type" : "string" - }, - "type" : "array" - }, - "description" : { - "description" : "Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer.", - "type" : "string" - }, - "type" : { - "default" : "bankAccountIdentificationTypeRequirement", - "description" : "**bankAccountIdentificationTypeRequirement**", - "enum" : [ - "bankAccountIdentificationTypeRequirement" - ], - "type" : "string" - } - }, - "required" : [ - "type" - ], - "type" : "object" - }, - "BankAccountIdentificationValidationRequest" : { - "additionalProperties" : false, - "properties" : { - "accountIdentification" : { - "description" : "Bank account identification.", - "oneOf" : [ - { - "$ref" : "#/components/schemas/AULocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/BRLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/CALocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/CZLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/DKLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/HKLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/HULocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/IbanAccountIdentification" - }, - { - "$ref" : "#/components/schemas/NOLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/NZLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/NumberAndBicAccountIdentification" - }, - { - "$ref" : "#/components/schemas/PLLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/SELocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/SGLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/UKLocalAccountIdentification" - }, - { - "$ref" : "#/components/schemas/USLocalAccountIdentification" - } - ] - } - }, - "required" : [ - "accountIdentification" - ], - "type" : "object" - }, - "BankAccountModel" : { - "additionalProperties" : false, - "properties" : { - "formFactor" : { - "default" : "physical", - "description" : "Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. \n\nAdyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.", - "enum" : [ - "physical", - "unknown", - "virtual" - ], - "nullable" : true, - "type" : "string" - } - }, - "type" : "object" - }, - "BankIdentification" : { - "additionalProperties" : false, - "properties" : { - "country" : { - "description" : "Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.", - "type" : "string" - }, - "identification" : { - "description" : "The bank identification code.", - "type" : "string" - }, - "identificationType" : { - "description" : "The type of the identification.\n\nPossible values: **iban**, **routingNumber**, **sortCode**.", - "enum" : [ - "iban", - "routingNumber", - "sortCode" - ], - "type" : "string" - } - }, - "type" : "object" - }, - "BrandVariantsRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "description" : "List of card brand variants.\n\nPossible values: \n\n- **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro**\n\n - **visa**, **visacredit**, **visadebit**, **visaprepaid**.\n\nYou can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**.\n\n", - "items" : { - "type" : "string" - }, - "type" : "array" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "BulkAddress" : { - "additionalProperties" : false, - "properties" : { - "city" : { - "description" : "The name of the city.", - "type" : "string" - }, - "company" : { - "description" : "The name of the company.", - "type" : "string" - }, - "country" : { - "description" : "The two-character ISO-3166-1 alpha-2 country code. For example, **US**.", - "type" : "string" - }, - "email" : { - "description" : "The email address.", - "type" : "string" - }, - "houseNumberOrName" : { - "description" : "The house number or name.", - "type" : "string" - }, - "mobile" : { - "description" : "The full telephone number.", - "type" : "string" - }, - "postalCode" : { - "description" : "The postal code.\n\nMaximum length:\n\n* 5 digits for addresses in the US.\n\n* 10 characters for all other countries.", - "type" : "string" - }, - "stateOrProvince" : { - "description" : "The two-letter ISO 3166-2 state or province code.\n\nMaximum length: 2 characters for addresses in the US.", - "type" : "string" - }, - "street" : { - "description" : "The streetname of the house.", - "type" : "string" - } - }, - "required" : [ - "country" - ], - "type" : "object" - }, - "CALocalAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The 5- to 12-digit bank account number, without separators or whitespace.", - "maxLength" : 12, - "minLength" : 5, - "type" : "string" - }, - "accountType" : { - "default" : "checking", - "description" : "The bank account type.\n\nPossible values: **checking** or **savings**. Defaults to **checking**.", - "enum" : [ - "checking", - "savings" - ], - "type" : "string" - }, - "institutionNumber" : { - "description" : "The 3-digit institution number, without separators or whitespace.", - "maxLength" : 3, - "minLength" : 3, - "type" : "string" - }, - "transitNumber" : { - "description" : "The 5-digit transit number, without separators or whitespace.", - "maxLength" : 5, - "minLength" : 5, - "type" : "string" - }, - "type" : { - "default" : "caLocal", - "description" : "**caLocal**", - "enum" : [ - "caLocal" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "accountNumber", - "institutionNumber", - "transitNumber" - ], - "type" : "object" - }, - "CZLocalAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The 2- to 16-digit bank account number (Číslo účtu) in the following format:\n\n- The optional prefix (předčíslí).\n\n- The required second part (základní část) which must be at least two non-zero digits.\n\nExamples:\n\n- **19-123457** (with prefix)\n\n- **123457** (without prefix)\n\n- **000019-0000123457** (with prefix, normalized)\n\n- **000000-0000123457** (without prefix, normalized)", - "maxLength" : 17, - "minLength" : 2, - "type" : "string" - }, - "bankCode" : { - "description" : "The 4-digit bank code (Kód banky), without separators or whitespace.", - "maxLength" : 4, - "minLength" : 4, - "type" : "string" - }, - "type" : { - "default" : "czLocal", - "description" : "**czLocal**", - "enum" : [ - "czLocal" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "accountNumber", - "bankCode" - ], - "type" : "object" - }, - "CapabilityProblem" : { - "additionalProperties" : false, - "properties" : { - "entity" : { - "description" : "Contains the type of the entity and the corresponding ID.", - "$ref" : "#/components/schemas/CapabilityProblemEntity" - }, - "verificationErrors" : { - "description" : "Contains information about the verification error.", - "items" : { - "$ref" : "#/components/schemas/VerificationError" - }, - "type" : "array" - } - }, - "type" : "object" - }, - "CapabilityProblemEntity" : { - "additionalProperties" : false, - "properties" : { - "documents" : { - "description" : "List of document IDs to which the verification errors related to the capabilities correspond to.", - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "id" : { - "description" : "The ID of the entity.", - "type" : "string" - }, - "owner" : { - "description" : "Contains details about the owner of the entity that has an error.", - "$ref" : "#/components/schemas/CapabilityProblemEntity-recursive" - }, - "type" : { - "description" : "Type of entity. \n\nPossible values: **LegalEntity**, **BankAccount**, **Document**.", - "enum" : [ - "BankAccount", - "Document", - "LegalEntity" - ], - "type" : "string" - } - }, - "type" : "object" - }, - "CapabilityProblemEntity-recursive" : { - "additionalProperties" : false, - "properties" : { - "documents" : { - "description" : "List of document IDs to which the verification errors related to the capabilities correspond to.", - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "id" : { - "description" : "The ID of the entity.", - "type" : "string" - }, - "type" : { - "description" : "Type of entity. \n\nPossible values: **LegalEntity**, **BankAccount**, **Document**.", - "enum" : [ - "BankAccount", - "Document", - "LegalEntity" - ], - "type" : "string" - } - }, - "required" : [ - ], - "type" : "object" - }, - "CapabilitySettings" : { - "additionalProperties" : false, - "properties" : { - "amountPerIndustry" : { - "additionalProperties" : { - "$ref" : "#/components/schemas/Amount" - }, - "description" : "", - "type" : "object" - }, - "authorizedCardUsers" : { - "description" : "", - "type" : "boolean" - }, - "fundingSource" : { - "description" : "", - "items" : { - "enum" : [ - "credit", - "debit", - "prepaid" - ], - "type" : "string" - }, - "type" : "array" - }, - "interval" : { - "description" : "", - "enum" : [ - "daily", - "monthly", - "weekly" - ], - "type" : "string" - }, - "maxAmount" : { - "description" : "", - "$ref" : "#/components/schemas/Amount" - } - }, - "type" : "object" - }, - "CapitalBalance" : { - "additionalProperties" : false, - "properties" : { - "currency" : { - "description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).", - "type" : "string" - }, - "fee" : { - "description" : "Fee amount.", - "format" : "int64", - "type" : "integer" - }, - "principal" : { - "description" : "Principal amount.", - "format" : "int64", - "type" : "integer" - }, - "total" : { - "description" : "Total amount. A sum of principal amount and fee amount.", - "format" : "int64", - "type" : "integer" - } - }, - "required" : [ - "principal", - "fee", - "total", - "currency" - ], - "type" : "object" - }, - "CapitalGrantAccount" : { - "additionalProperties" : false, - "properties" : { - "balances" : { - "description" : "The balances of the grant account.", - "items" : { - "$ref" : "#/components/schemas/CapitalBalance" - }, - "type" : "array" - }, - "fundingBalanceAccountId" : { - "description" : "The unique identifier of the balance account used to fund the grant.", - "type" : "string" - }, - "id" : { - "description" : "The identifier of the grant account.", - "type" : "string" - }, - "limits" : { - "description" : "The limits of the grant account.", - "items" : { - "$ref" : "#/components/schemas/GrantLimit" - }, - "type" : "array" - } - }, - "type" : "object" - }, - "Card" : { - "additionalProperties" : false, - "properties" : { - "authentication" : { - "description" : "Contains the card user's password and mobile phone number. This is required when you issue cards that can be used to make online payments within the EEA and the UK, or can be added to digital wallets. Refer to [3D Secure and digital wallets](https://docs.adyen.com/issuing/3d-secure-and-wallets) for more information.", - "$ref" : "#/components/schemas/Authentication" - }, - "bin" : { - "description" : "The bank identification number (BIN) of the card number.", - "type" : "string" - }, - "brand" : { - "description" : "The brand of the physical or the virtual card.\nPossible values: **visa**, **mc**.", - "type" : "string" - }, - "brandVariant" : { - "description" : "The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**.\n>Reach out to your Adyen contact to get the values relevant for your integration.", - "type" : "string" - }, - "cardholderName" : { - "description" : "The name of the cardholder.\n Maximum length: 26 characters.", - "maxLength" : 26, - "type" : "string" - }, - "configuration" : { - "description" : "Settings required when creating a physical or a virtual card. \n\nReach out to your Adyen contact to get the values that you can send in this object.", - "$ref" : "#/components/schemas/CardConfiguration" - }, - "cvc" : { - "description" : "The CVC2 value of the card.\n> The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards.", - "type" : "string" - }, - "deliveryContact" : { - "x-addedInVersion" : "2", - "description" : "The delivery contact (name and address) for physical card delivery.", - "$ref" : "#/components/schemas/DeliveryContact" - }, - "expiration" : { - "description" : "The expiration date of the card.", - "$ref" : "#/components/schemas/Expiry" - }, - "formFactor" : { - "description" : "The form factor of the card.\nPossible values: **virtual**, **physical**.", - "enum" : [ - "physical", - "unknown", - "virtual" - ], - "type" : "string" - }, - "lastFour" : { - "description" : "Last last four digits of the card number.", - "type" : "string" - }, - "number" : { - "description" : "The primary account number (PAN) of the card.\n> The PAN is masked by default and returned only for single-use virtual cards.", - "readOnly" : true, - "type" : "string" - }, - "threeDSecure" : { - "description" : "Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**.\n>Reach out to your Adyen contact to get the values relevant for your integration.", - "type" : "string" - } - }, - "required" : [ - "formFactor", - "cardholderName", - "brand", - "brandVariant", - "number" - ], - "type" : "object" - }, - "CardConfiguration" : { - "additionalProperties" : false, - "properties" : { - "activation" : { - "description" : "Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions.", - "type" : "string" - }, - "activationUrl" : { - "description" : "Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. \n\nMaximum length: 255 characters.", - "maxLength" : 255, - "type" : "string" - }, - "bulkAddress" : { - "description" : "Overrides the shipment bulk address defined in the `configurationProfileId`.", - "$ref" : "#/components/schemas/BulkAddress" - }, - "cardImageId" : { - "description" : "The ID of the card image. This is the image that will be printed on the full front of the card.", - "type" : "string" - }, - "carrier" : { - "description" : "Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached.", - "type" : "string" - }, - "carrierImageId" : { - "description" : "The ID of the carrier image. This is the image that will printed on the letter to which the card is attached.", - "type" : "string" - }, - "configurationProfileId" : { - "description" : "The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them.\n\nFor example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile.", - "type" : "string" - }, - "currency" : { - "description" : "The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**.", - "type" : "string" - }, - "envelope" : { - "description" : "Overrides the envelope design ID defined in the `configurationProfileId`. ", - "type" : "string" - }, - "insert" : { - "description" : "Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card.", - "type" : "string" - }, - "language" : { - "description" : "The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**.", - "type" : "string" - }, - "logoImageId" : { - "description" : "The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner.", - "type" : "string" - }, - "pinMailer" : { - "description" : "Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed.", - "type" : "string" - }, - "shipmentMethod" : { - "description" : "Overrides the logistics company defined in the `configurationProfileId`.", - "type" : "string" - } - }, - "required" : [ - "configurationProfileId" - ], - "type" : "object" - }, - "CardInfo" : { - "additionalProperties" : false, - "properties" : { - "authentication" : { - "description" : "Contains the card user's password and mobile phone number. This is required when you issue cards that can be used to make online payments within the EEA and the UK, or can be added to digital wallets. Refer to [3D Secure and digital wallets](https://docs.adyen.com/issuing/3d-secure-and-wallets) for more information.", - "$ref" : "#/components/schemas/Authentication" - }, - "brand" : { - "description" : "The brand of the physical or the virtual card.\nPossible values: **visa**, **mc**.", - "type" : "string" - }, - "brandVariant" : { - "description" : "The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**.\n>Reach out to your Adyen contact to get the values relevant for your integration.", - "type" : "string" - }, - "cardholderName" : { - "description" : "The name of the cardholder.\n Maximum length: 26 characters.", - "maxLength" : 26, - "type" : "string" - }, - "configuration" : { - "description" : "Settings required when creating a physical or a virtual card. \n\nReach out to your Adyen contact to get the values that you can send in this object.", - "$ref" : "#/components/schemas/CardConfiguration" - }, - "deliveryContact" : { - "x-addedInVersion" : "2", - "description" : "The delivery contact (name and address) for physical card delivery.", - "$ref" : "#/components/schemas/DeliveryContact" - }, - "formFactor" : { - "description" : "The form factor of the card.\nPossible values: **virtual**, **physical**.", - "enum" : [ - "physical", - "unknown", - "virtual" - ], - "type" : "string" - }, - "threeDSecure" : { - "description" : "Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**.\n>Reach out to your Adyen contact to get the values relevant for your integration.", - "type" : "string" - } - }, - "required" : [ - "formFactor", - "cardholderName", - "brand", - "brandVariant" - ], - "type" : "object" - }, - "CardOrder" : { - "additionalProperties" : false, - "properties" : { - "beginDate" : { - "description" : "The date when the card order is created.", - "format" : "date-time", - "type" : "string" - }, - "cardManufacturingProfileId" : { - "description" : "The unique identifier of the card manufacturer profile.", - "type" : "string" - }, - "closedDate" : { - "description" : "The date when the card order processing ends.", - "format" : "date-time", - "type" : "string" - }, - "endDate" : { - "description" : "The date when you manually closed the card order.\n\nCard orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`.", - "format" : "date-time", - "type" : "string" - }, - "id" : { - "description" : "The unique identifier of the card order.", - "type" : "string" - }, - "lockDate" : { - "description" : "The date when the card order processing begins.", - "format" : "date-time", - "type" : "string" - }, - "serviceCenter" : { - "description" : "The service center.", - "type" : "string" - }, - "status" : { - "description" : "The status of the card order.\n\nPossible values: **Open**, **Closed**.", - "enum" : [ - "closed", - "open" - ], - "type" : "string" - } - }, - "type" : "object" - }, - "CardOrderItem" : { - "additionalProperties" : false, - "properties" : { - "balancePlatform" : { - "description" : "The unique identifier of the balance platform.", - "type" : "string" - }, - "card" : { - "description" : "The status of the card delivery.\n\nPossible values: **created**, **rejected**, **processing**, **produced**, **shipped**, **delivered**, **notApplicable**, **unknown**. ", - "$ref" : "#/components/schemas/CardOrderItemDeliveryStatus" - }, - "cardOrderItemId" : { - "description" : "The unique identifier of the card order item.", - "type" : "string" - }, - "creationDate" : { - "description" : "The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.", - "format" : "date-time", - "type" : "string" - }, - "id" : { - "description" : "The ID of the resource.", - "readOnly" : true, - "type" : "string" - }, - "paymentInstrumentId" : { - "description" : "The unique identifier of the payment instrument related to the card order item.", - "type" : "string" - }, - "pin" : { - "description" : "Contains information about the status of the PIN delivery.", - "$ref" : "#/components/schemas/CardOrderItemDeliveryStatus" - }, - "shippingMethod" : { - "description" : "The shipping method used to deliver the card or the PIN.", - "type" : "string" - } - }, - "type" : "object" - }, - "CardOrderItemDeliveryStatus" : { - "additionalProperties" : false, - "properties" : { - "errorMessage" : { - "description" : "An error message.", - "type" : "string" - }, - "status" : { - "description" : "The status of the PIN delivery.", - "enum" : [ - "created", - "delivered", - "notApplicable", - "processing", - "produced", - "rejected", - "shipped", - "unknown" - ], - "type" : "string" - }, - "trackingNumber" : { - "description" : "The tracking number of the PIN delivery.", - "type" : "string" - } - }, - "type" : "object" - }, - "ContactDetails" : { - "deprecated" : true, - "additionalProperties" : false, - "properties" : { - "address" : { - "description" : "The address of the account holder.", - "$ref" : "#/components/schemas/Address" - }, - "email" : { - "description" : "The email address of the account holder.", - "type" : "string" - }, - "phone" : { - "description" : "The phone number of the account holder.", - "$ref" : "#/components/schemas/Phone" - }, - "webAddress" : { - "description" : "The URL of the account holder's website.", - "type" : "string" - } - }, - "required" : [ - "email", - "phone", - "address" - ], - "type" : "object" - }, - "Counterparty" : { - "additionalProperties" : false, - "properties" : { - "bankAccount" : { - "description" : "Contains information about the bank account.", - "$ref" : "#/components/schemas/BankAccount" - }, - "transferInstrumentId" : { - "description" : "The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).", - "type" : "string" - } - }, - "type" : "object" - }, - "CounterpartyBankRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "description" : "The list of counterparty bank institutions to be evaluated.", - "items" : { - "$ref" : "#/components/schemas/BankIdentification" - }, - "type" : "array" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "CounterpartyTypesRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "description" : "The list of counterparty types to be evaluated.", - "items" : { - "enum" : [ - "balanceAccount", - "bankAccount", - "card", - "transferInstrument" - ], - "type" : "string" - }, - "type" : "array" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "CountriesRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "description" : "List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes.", - "items" : { - "type" : "string" - }, - "type" : "array" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "CreateSweepConfigurationV2" : { - "additionalProperties" : false, - "properties" : { - "category" : { - "x-addedInVersion" : "2", - "description" : "The type of transfer that results from the sweep.\n\nPossible values:\n\n - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).\n\n- **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform.\n\nRequired when setting `priorities`.", - "enum" : [ - "bank", - "internal", - "platformPayment" - ], - "type" : "string" - }, - "counterparty" : { - "description" : "The destination or the source of the funds, depending on the sweep `type`.\n\nEither a `balanceAccountId`, `transferInstrumentId`, or `merchantAccount` is required.", - "$ref" : "#/components/schemas/SweepCounterparty" - }, - "currency" : { - "description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**.\n\nThe sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).", - "type" : "string" - }, - "description" : { - "description" : "The message that will be used in the sweep transfer's description body with a maximum length of 140 characters.\n\nIf the message is longer after replacing placeholders, the message will be cut off at 140 characters.", - "type" : "string" - }, - "priorities" : { - "x-addedInVersion" : "2", - "description" : "The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities.\n\nPossible values:\n\n* **regular**: for normal, low-value transactions.\n\n* **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.\n\n* **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.\n\n* **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).\n\n* **crossBorder**: for high-value transfers to a recipient in a different country.\n\n* **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).\n\nSet `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).", - "items" : { - "enum" : [ - "crossBorder", - "fast", - "instant", - "internal", - "regular", - "wire" - ], - "type" : "string" - }, - "type" : "array" - }, - "reason" : { - "description" : "The reason for disabling the sweep.", - "enum" : [ - "accountHierarchyNotActive", - "amountLimitExceeded", - "approved", - "balanceAccountTemporarilyBlockedByTransactionRule", - "counterpartyAccountBlocked", - "counterpartyAccountClosed", - "counterpartyAccountNotFound", - "counterpartyAddressRequired", - "counterpartyBankTimedOut", - "counterpartyBankUnavailable", - "declined", - "declinedByTransactionRule", - "directDebitNotSupported", - "error", - "notEnoughBalance", - "pendingApproval", - "pendingExecution", - "refusedByCounterpartyBank", - "refusedByCustomer", - "routeNotFound", - "scaFailed", - "transferInstrumentDoesNotExist", - "unknown" - ], - "readOnly" : true, - "type" : "string" - }, - "reasonDetail" : { - "description" : "The human readable reason for disabling the sweep.", - "readOnly" : true, - "type" : "string" - }, - "reference" : { - "description" : "Your reference for the sweep configuration.", - "maxLength" : 80, - "type" : "string" - }, - "referenceForBeneficiary" : { - "description" : "The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.", - "maxLength" : 80, - "type" : "string" - }, - "schedule" : { - "description" : "The schedule when the `triggerAmount` is evaluated. If the balance meets the threshold, funds are pushed out of or pulled in to the balance account.", - "$ref" : "#/components/schemas/SweepSchedule" - }, - "status" : { - "description" : "The status of the sweep. If not provided, by default, this is set to **active**.\n\nPossible values: \n\n * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. \n\n * **inactive**: the sweep is disabled and cannot be triggered. \n\n", - "enum" : [ - "active", - "inactive" - ], - "type" : "string" - }, - "sweepAmount" : { - "description" : "The amount that must be pushed out or pulled in. You can configure either `sweepAmount` or `targetAmount`, not both.", - "$ref" : "#/components/schemas/Amount" - }, - "targetAmount" : { - "description" : "The amount that must be available in the balance account after the sweep. You can configure either `sweepAmount` or `targetAmount`, not both.", - "$ref" : "#/components/schemas/Amount" - }, - "triggerAmount" : { - "description" : "The threshold amount that triggers the sweep. If not provided, by default, the amount is set to zero. The `triggerAmount` is evaluated according to the specified `schedule.type`.\n\n* For `type` **pull**, if the balance is less than or equal to the `triggerAmount`, funds are pulled in to the balance account.\n\n* For `type` **push**, if the balance is more than or equal to the `triggerAmount`, funds are pushed out of the balance account.", - "$ref" : "#/components/schemas/Amount" - }, - "type" : { - "default" : "push", - "description" : "The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**.\n\nPossible values:\n\n * **push**: _push out funds_ to a destination balance account or transfer instrument.\n\n * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.", - "enum" : [ - "pull", - "push" - ], - "type" : "string" - } - }, - "required" : [ - "schedule", - "currency", - "counterparty" - ], - "type" : "object" - }, - "DKLocalAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The 4-10 digits bank account number (Kontonummer) (without separators or whitespace).", - "maxLength" : 10, - "minLength" : 4, - "type" : "string" - }, - "bankCode" : { - "description" : "The 4-digit bank code (Registreringsnummer) (without separators or whitespace).", - "maxLength" : 4, - "minLength" : 4, - "type" : "string" - }, - "type" : { - "default" : "dkLocal", - "description" : "**dkLocal**", - "enum" : [ - "dkLocal" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "accountNumber", - "bankCode" - ], - "type" : "object" - }, - "DayOfWeekRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "description" : "List of days of the week.\n\nPossible values: **monday**, **tuesday**, **wednesday**, **thursday**, **friday**, **saturday**, **sunday**.\n\n", - "items" : { - "enum" : [ - "friday", - "monday", - "saturday", - "sunday", - "thursday", - "tuesday", - "wednesday" - ], - "type" : "string" - }, - "type" : "array" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "DelegatedAuthenticationData" : { - "additionalProperties" : false, - "properties" : { - "sdkOutput" : { - "description" : "A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK.", - "maxLength" : 20000, - "type" : "string" - } - }, - "required" : [ - "sdkOutput" - ], - "type" : "object" - }, - "DeliveryAddress" : { - "additionalProperties" : false, - "properties" : { - "city" : { - "description" : "The name of the city.", - "type" : "string" - }, - "country" : { - "description" : "The two-character ISO-3166-1 alpha-2 country code. For example, **US**.\n>If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`.", - "type" : "string" - }, - "line1" : { - "description" : "The name of the street. Do not include the number of the building.\n\nFor example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**.", - "type" : "string" - }, - "line2" : { - "description" : "The number of the building.\n\nFor example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**.", - "type" : "string" - }, - "line3" : { - "description" : "Additional information about the delivery address.", - "type" : "string" - }, - "postalCode" : { - "description" : "The postal code.\nMaximum length:\n* 5 digits for an address in the US.\n* 10 characters for an address in all other countries.", - "type" : "string" - }, - "stateOrProvince" : { - "description" : "The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada.\n> Required for the US and Canada.", - "type" : "string" - } - }, - "required" : [ - "country" - ], - "type" : "object" - }, - "DeliveryContact" : { - "additionalProperties" : false, - "properties" : { - "address" : { - "description" : "The address of the contact.", - "$ref" : "#/components/schemas/DeliveryAddress" - }, - "company" : { - "x-addedInVersion" : "2", - "description" : "The company name of the contact.", - "type" : "string" - }, - "email" : { - "description" : "The email address of the contact.", - "type" : "string" - }, - "fullPhoneNumber" : { - "description" : "The full phone number of the contact provided as a single string. It will be handled as a landline phone.\n**Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\"", - "type" : "string" - }, - "name" : { - "description" : "The name of the contact.", - "$ref" : "#/components/schemas/Name" - }, - "phoneNumber" : { - "description" : "The phone number of the contact.", - "$ref" : "#/components/schemas/PhoneNumber" - }, - "webAddress" : { - "description" : "The URL of the contact's website.", - "type" : "string" - } - }, - "required" : [ - "name", - "address" - ], - "type" : "object" - }, - "Device" : { - "additionalProperties" : false, - "properties" : { - "id" : { - "description" : "The unique identifier of the SCA device.", - "type" : "string" - }, - "name" : { - "description" : "The name of the SCA device. You can show this name to your user to help them identify the device.", - "type" : "string" - }, - "paymentInstrumentId" : { - "description" : "The unique identifier of the payment instrument that is associated with the SCA device.", - "type" : "string" - }, - "type" : { - "description" : "The type of device.\n\nPossible values: **ios**, **android**, **browser**.", - "enum" : [ - "ios", - "android", - "browser" - ], - "type" : "string" - } - }, - "type" : "object" - }, - "DeviceInfo" : { - "additionalProperties" : false, - "properties" : { - "cardCaptureTechnology" : { - "description" : "The technology used to capture the card details.", - "type" : "string" - }, - "deviceName" : { - "description" : "The name of the device.", - "type" : "string" - }, - "formFactor" : { - "description" : "The form factor of the device to be provisioned.", - "type" : "string" - }, - "imei" : { - "description" : "The IMEI number of the device being provisioned.", - "type" : "string" - }, - "isoDeviceType" : { - "description" : "The 2-digit device type provided on the ISO messages that the token is being provisioned to.", - "type" : "string" - }, - "msisdn" : { - "description" : "The MSISDN of the device being provisioned.", - "type" : "string" - }, - "osName" : { - "description" : "The name of the device operating system.", - "type" : "string" - }, - "osVersion" : { - "description" : "The version of the device operating system.", - "type" : "string" - }, - "paymentTypes" : { - "description" : "Different types of payments supported for the network token.", - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "serialNumber" : { - "description" : "The serial number of the device.", - "type" : "string" - }, - "storageTechnology" : { - "description" : "The architecture or technology used for network token storage.", - "type" : "string" - } - }, - "type" : "object" - }, - "DifferentCurrenciesRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "description" : "Checks the currency of the payment against the currency of the payment instrument.\n\nPossible values:\n\n- **true**: The currency of the payment is different from the currency of the payment instrument.\n\n- **false**: The currencies are the same.\n\n", - "type" : "boolean" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "Duration" : { - "additionalProperties" : false, - "properties" : { - "unit" : { - "description" : "The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**.\n\nPossible values: **minutes**, **hours**, **days**, **weeks**, or **months**", - "enum" : [ - "days", - "hours", - "minutes", - "months", - "weeks" - ], - "type" : "string" - }, - "value" : { - "description" : "The length of time by the unit. For example, 5 days.\n\nThe maximum duration is 90 days or an equivalent in other units. For example, 3 months.", - "format" : "int32", - "type" : "integer" - } - }, - "type" : "object" - }, - "EntryModesRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "description" : "List of point-of-sale entry modes.\n\nPossible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**.\n\n", - "items" : { - "enum" : [ - "barcode", - "chip", - "cof", - "contactless", - "magstripe", - "manual", - "ocr", - "server", - "unknown" - ], - "type" : "string" - }, - "type" : "array" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "Expiry" : { - "additionalProperties" : false, - "properties" : { - "month" : { - "description" : "The month in which the card will expire.", - "type" : "string" - }, - "year" : { - "description" : "The year in which the card will expire.", - "type" : "string" - } - }, - "type" : "object" - }, - "Fee" : { - "additionalProperties" : false, - "properties" : { - "amount" : { - "description" : "An object containing the fee amount.", - "$ref" : "#/components/schemas/Amount" - } - }, - "required" : [ - "amount" - ], - "type" : "object" - }, - "GetNetworkTokenResponse" : { - "additionalProperties" : false, - "properties" : { - "token" : { - "description" : "The details of the network token.", - "$ref" : "#/components/schemas/NetworkToken" - } - }, - "required" : [ - "token" - ], - "type" : "object" - }, - "GetTaxFormResponse" : { - "additionalProperties" : false, - "properties" : { - "content" : { - "description" : "The content of the tax form in Base64 format.", - "format" : "byte", - "type" : "string" - }, - "contentType" : { - "description" : "The content type of the tax form.\n\nPossible values:\n* **application/pdf**\n\n", - "enum" : [ - "application/pdf" - ], - "type" : "string" - } - }, - "required" : [ - "content" - ], - "type" : "object" - }, - "GrantLimit" : { - "additionalProperties" : false, - "properties" : { - "amount" : { - "description" : "The amount available on the grant account.", - "$ref" : "#/components/schemas/Amount" - } - }, - "type" : "object" - }, - "GrantOffer" : { - "additionalProperties" : false, - "properties" : { - "accountHolderId" : { - "description" : "The identifier of the account holder to which the grant is offered.", - "type" : "string" - }, - "amount" : { - "description" : "The principal amount of the grant.", - "$ref" : "#/components/schemas/Amount" - }, - "contractType" : { - "description" : "The contract type of the grant offer. Possible value: **cashAdvance**, **loan**.", - "enum" : [ - "cashAdvance", - "loan" - ], - "type" : "string" - }, - "expiresAt" : { - "description" : "The end date of the grant offer validity period.", - "format" : "date-time", - "type" : "string" - }, - "fee" : { - "description" : "Details of the fee configuration.", - "$ref" : "#/components/schemas/Fee" - }, - "id" : { - "description" : "The unique identifier of the grant offer.", - "type" : "string" - }, - "repayment" : { - "description" : "Details of the repayment configuration.", - "$ref" : "#/components/schemas/Repayment" - }, - "startsAt" : { - "description" : "The starting date of the grant offer validity period.", - "format" : "date-time", - "type" : "string" - } - }, - "required" : [ - "accountHolderId" - ], - "type" : "object" - }, - "GrantOffers" : { - "additionalProperties" : false, - "properties" : { - "grantOffers" : { - "description" : "A list of available grant offers.", - "items" : { - "$ref" : "#/components/schemas/GrantOffer" - }, - "type" : "array" - } - }, - "required" : [ - "grantOffers" - ], - "type" : "object" - }, - "HKLocalAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code.", - "maxLength" : 15, - "minLength" : 9, - "type" : "string" - }, - "clearingCode" : { - "description" : "The 3-digit clearing code, without separators or whitespace.", - "maxLength" : 3, - "minLength" : 3, - "type" : "string" - }, - "type" : { - "default" : "hkLocal", - "description" : "**hkLocal**", - "enum" : [ - "hkLocal" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "accountNumber", - "clearingCode" - ], - "type" : "object" - }, - "HULocalAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The 24-digit bank account number, without separators or whitespace.", - "maxLength" : 24, - "minLength" : 24, - "type" : "string" - }, - "type" : { - "default" : "huLocal", - "description" : "**huLocal**", - "enum" : [ - "huLocal" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "accountNumber" - ], - "type" : "object" - }, - "Href" : { - "additionalProperties" : false, - "properties" : { - "href" : { - "type" : "string" - } - }, - "type" : "object" - }, - "IbanAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "iban" : { - "description" : "The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.", - "type" : "string" - }, - "type" : { - "default" : "iban", - "description" : "**iban**", - "enum" : [ - "iban" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "iban" - ], - "type" : "object" - }, - "IbanAccountIdentificationRequirement" : { - "additionalProperties" : false, - "properties" : { - "description" : { - "description" : "Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard.", - "type" : "string" - }, - "ibanPrefixes" : { - "description" : "Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK.", - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "type" : { - "default" : "ibanAccountIdentificationRequirement", - "description" : "**ibanAccountIdentificationRequirement**", - "enum" : [ - "ibanAccountIdentificationRequirement" - ], - "type" : "string" - } - }, - "required" : [ - "type" - ], - "type" : "object" - }, - "InternationalTransactionRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "description" : "Boolean indicating whether transaction is an international transaction.\n\nPossible values:\n\n- **true**: The transaction is an international transaction.\n\n- **false**: The transaction is a domestic transaction.\n\n", - "type" : "boolean" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "InvalidField" : { - "additionalProperties" : false, - "properties" : { - "message" : { - "description" : "Description of the validation error.", - "type" : "string" - }, - "name" : { - "description" : "The field that has an invalid value.", - "type" : "string" - }, - "value" : { - "description" : "The invalid value.", - "type" : "string" - } - }, - "required" : [ - "name", - "value", - "message" - ], - "type" : "object" - }, - "JSONObject" : { - "type" : "object" - }, - "Link" : { - "additionalProperties" : false, - "properties" : { - "first" : { - "description" : "The link to the first page of the list.", - "$ref" : "#/components/schemas/Href" - }, - "last" : { - "description" : "The link to the last page of the list.", - "$ref" : "#/components/schemas/Href" - }, - "next" : { - "description" : "The link to the next page of the list.", - "$ref" : "#/components/schemas/Href" - }, - "previous" : { - "description" : "The link to the previous page of the list.", - "$ref" : "#/components/schemas/Href" - }, - "self" : { - "description" : "The link to the list page you are currently viewing.", - "$ref" : "#/components/schemas/Href" - } - }, - "type" : "object" - }, - "ListNetworkTokensResponse" : { - "additionalProperties" : false, - "properties" : { - "networkTokens" : { - "description" : "List of network tokens.", - "items" : { - "$ref" : "#/components/schemas/NetworkToken" - }, - "type" : "array" - } - }, - "type" : "object" - }, - "MatchingTransactionsRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "description" : "The number of transactions.", - "format" : "int32", - "type" : "integer" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "MatchingValuesRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "items" : { - "enum" : [ - "acquirerId", - "amount", - "currency", - "merchantId", - "merchantName" - ], - "type" : "string" - }, - "type" : "array" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "MccsRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "description" : "List of merchant category codes (MCCs).", - "items" : { - "type" : "string" - }, - "type" : "array" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "MerchantAcquirerPair" : { - "additionalProperties" : false, - "properties" : { - "acquirerId" : { - "description" : "The acquirer ID.", - "type" : "string" - }, - "merchantId" : { - "description" : "The merchant identification number (MID).", - "type" : "string" - } - }, - "type" : "object" - }, - "MerchantNamesRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "items" : { - "$ref" : "#/components/schemas/StringMatch" - }, - "type" : "array" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "MerchantsRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "description" : "List of merchant ID and acquirer ID pairs.", - "items" : { - "$ref" : "#/components/schemas/MerchantAcquirerPair" - }, - "type" : "array" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "NOLocalAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The 11-digit bank account number, without separators or whitespace.", - "maxLength" : 11, - "minLength" : 11, - "type" : "string" - }, - "type" : { - "default" : "noLocal", - "description" : "**noLocal**", - "enum" : [ - "noLocal" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "accountNumber" - ], - "type" : "object" - }, - "NZLocalAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix.", - "maxLength" : 16, - "minLength" : 15, - "type" : "string" - }, - "type" : { - "default" : "nzLocal", - "description" : "**nzLocal**", - "enum" : [ - "nzLocal" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "accountNumber" - ], - "type" : "object" - }, - "Name" : { - "additionalProperties" : false, - "properties" : { - "firstName" : { - "description" : "The first name.", - "maxLength" : 80, - "type" : "string" - }, - "lastName" : { - "description" : "The last name.", - "maxLength" : 80, - "type" : "string" - } - }, - "required" : [ - "firstName", - "lastName" - ], - "type" : "object" - }, - "NetworkToken" : { - "additionalProperties" : false, - "properties" : { - "brandVariant" : { - "description" : "The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**.", - "type" : "string" - }, - "creationDate" : { - "description" : "Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2020-12-18T10:15:30+01:00**..", - "format" : "date-time", - "type" : "string" - }, - "device" : { - "description" : "Device details.", - "$ref" : "#/components/schemas/DeviceInfo" - }, - "id" : { - "description" : "The unique identifier of the network token.", - "type" : "string" - }, - "paymentInstrumentId" : { - "description" : "The unique identifier of the payment instrument to which this network token belongs to.", - "type" : "string" - }, - "status" : { - "description" : "The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**.", - "enum" : [ - "active", - "inactive", - "suspended", - "closed" - ], - "type" : "string" - }, - "tokenLastFour" : { - "description" : "The last four digits of the network token `id`.", - "type" : "string" - }, - "type" : { - "description" : "The type of network token. For example, **wallet**, **cof**.", - "type" : "string" - } - }, - "type" : "object" - }, - "NumberAndBicAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The bank account number, without separators or whitespace. The length and format depends on the bank or country.", - "maxLength" : 34, - "type" : "string" - }, - "additionalBankIdentification" : { - "description" : "Additional identification codes of the bank. Some banks may require these identifiers for cross-border transfers.", - "$ref" : "#/components/schemas/AdditionalBankIdentification" - }, - "bic" : { - "description" : "The bank's 8- or 11-character BIC or SWIFT code.", - "maxLength" : 11, - "minLength" : 8, - "type" : "string" - }, - "type" : { - "default" : "numberAndBic", - "description" : "**numberAndBic**", - "enum" : [ - "numberAndBic" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "accountNumber", - "bic" - ], - "type" : "object" - }, - "PLLocalAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace.", - "maxLength" : 26, - "minLength" : 26, - "type" : "string" - }, - "type" : { - "default" : "plLocal", - "description" : "**plLocal**", - "enum" : [ - "plLocal" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "accountNumber" - ], - "type" : "object" - }, - "PaginatedAccountHoldersResponse" : { - "additionalProperties" : false, - "properties" : { - "accountHolders" : { - "description" : "List of account holders.", - "items" : { - "$ref" : "#/components/schemas/AccountHolder" - }, - "type" : "array" - }, - "hasNext" : { - "description" : "Indicates whether there are more items on the next page.", - "type" : "boolean" - }, - "hasPrevious" : { - "description" : "Indicates whether there are more items on the previous page.", - "type" : "boolean" - } - }, - "required" : [ - "accountHolders", - "hasPrevious", - "hasNext" - ], - "type" : "object" - }, - "PaginatedBalanceAccountsResponse" : { - "additionalProperties" : false, - "properties" : { - "balanceAccounts" : { - "description" : "List of balance accounts.", - "items" : { - "$ref" : "#/components/schemas/BalanceAccountBase" - }, - "type" : "array" - }, - "hasNext" : { - "description" : "Indicates whether there are more items on the next page.", - "type" : "boolean" - }, - "hasPrevious" : { - "description" : "Indicates whether there are more items on the previous page.", - "type" : "boolean" - } - }, - "required" : [ - "balanceAccounts", - "hasPrevious", - "hasNext" - ], - "type" : "object" - }, - "PaginatedGetCardOrderItemResponse" : { - "additionalProperties" : false, - "properties" : { - "data" : { - "description" : "List of card order items in the card order batch.", - "items" : { - "$ref" : "#/components/schemas/CardOrderItem" - }, - "type" : "array" - }, - "hasNext" : { - "description" : "Indicates whether there are more items on the next page.", - "type" : "boolean" - }, - "hasPrevious" : { - "description" : "Indicates whether there are more items on the previous page.", - "type" : "boolean" - } - }, - "required" : [ - "data", - "hasPrevious", - "hasNext" - ], - "type" : "object" - }, - "PaginatedGetCardOrderResponse" : { - "additionalProperties" : false, - "properties" : { - "cardOrders" : { - "description" : "Contains objects with information about card orders.", - "items" : { - "$ref" : "#/components/schemas/CardOrder" - }, - "type" : "array" - }, - "hasNext" : { - "description" : "Indicates whether there are more items on the next page.", - "type" : "boolean" - }, - "hasPrevious" : { - "description" : "Indicates whether there are more items on the previous page.", - "type" : "boolean" - } - }, - "required" : [ - "hasPrevious", - "hasNext" - ], - "type" : "object" - }, - "PaginatedPaymentInstrumentsResponse" : { - "additionalProperties" : false, - "properties" : { - "hasNext" : { - "description" : "Indicates whether there are more items on the next page.", - "type" : "boolean" - }, - "hasPrevious" : { - "description" : "Indicates whether there are more items on the previous page.", - "type" : "boolean" - }, - "paymentInstruments" : { - "description" : "List of payment instruments associated with the balance account.", - "items" : { - "$ref" : "#/components/schemas/PaymentInstrument" - }, - "type" : "array" - } - }, - "required" : [ - "paymentInstruments", - "hasPrevious", - "hasNext" - ], - "type" : "object" - }, - "PaymentInstrument" : { - "additionalProperties" : false, - "properties" : { - "additionalBankAccountIdentifications" : { - "deprecated" : true, - "x-deprecatedInVersion" : "2", - "x-deprecatedMessage" : "Please use `bankAccount` object instead", - "description" : "Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**.", - "items" : { - "oneOf" : [ - { - "$ref" : "#/components/schemas/IbanAccountIdentification" - } - ] - }, - "type" : "array" - }, - "balanceAccountId" : { - "description" : "The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument.", - "type" : "string" - }, - "bankAccount" : { - "description" : "Contains the business account details. Returned when you create a payment instrument with `type` **bankAccount**.", - "$ref" : "#/components/schemas/BankAccountDetails" - }, - "card" : { - "description" : "Contains information about the card payment instrument. Returned when you create a payment instrument with `type` **card**.", - "$ref" : "#/components/schemas/Card" - }, - "description" : { - "description" : "Your description for the payment instrument, maximum 300 characters.", - "maxLength" : 300, - "type" : "string" - }, - "id" : { - "description" : "The unique identifier of the payment instrument.", - "type" : "string" - }, - "issuingCountryCode" : { - "description" : "The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**.", - "type" : "string" - }, - "paymentInstrumentGroupId" : { - "description" : "The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs.", - "type" : "string" - }, - "reference" : { - "description" : "Your reference for the payment instrument, maximum 150 characters.", - "maxLength" : 150, - "type" : "string" - }, - "status" : { - "description" : "The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**.\n\nPossible values: \n\n * **active**: The payment instrument is active and can be used to make payments. \n\n * **inactive**: The payment instrument is inactive and cannot be used to make payments. \n\n * **suspended**: The payment instrument is suspended, either because it was stolen or lost. \n\n * **closed**: The payment instrument is permanently closed. This action cannot be undone. \n\n", - "enum" : [ - "active", - "closed", - "inactive", - "suspended" - ], - "type" : "string" - }, - "statusComment" : { - "x-addedInVersion" : "2", - "description" : "The status comment provides additional information for the statusReason of the payment instrument.", - "type" : "string" - }, - "statusReason" : { - "x-addedInVersion" : "2", - "description" : "The reason for the status of the payment instrument.\n\nPossible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**.\nIf the reason is **other**, you must also send the `statusComment` parameter describing the status change.", - "enum" : [ - "accountClosure", - "damaged", - "endOfLife", - "expired", - "lost", - "other", - "stolen", - "suspectedFraud", - "transactionRule" - ], - "type" : "string" - }, - "type" : { - "description" : "The type of payment instrument.\n\nPossible values: **card**, **bankAccount**.", - "enum" : [ - "bankAccount", - "card" - ], - "type" : "string" - } - }, - "required" : [ - "balanceAccountId", - "issuingCountryCode", - "type", - "id" - ], - "type" : "object" - }, - "PaymentInstrumentGroup" : { - "additionalProperties" : false, - "properties" : { - "balancePlatform" : { - "description" : "The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs.", - "type" : "string" - }, - "description" : { - "description" : "Your description for the payment instrument group.", - "maxLength" : 300, - "type" : "string" - }, - "id" : { - "description" : "The unique identifier of the payment instrument group.", - "type" : "string" - }, - "properties" : { - "additionalProperties" : { - "type" : "string" - }, - "description" : "Properties of the payment instrument group.", - "type" : "object" - }, - "reference" : { - "description" : "Your reference for the payment instrument group.", - "maxLength" : 150, - "type" : "string" - }, - "txVariant" : { - "description" : "The tx variant of the payment instrument group.", - "type" : "string" - } - }, - "required" : [ - "balancePlatform", - "txVariant" - ], - "type" : "object" - }, - "PaymentInstrumentGroupInfo" : { - "additionalProperties" : false, - "properties" : { - "balancePlatform" : { - "description" : "The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs.", - "type" : "string" - }, - "description" : { - "description" : "Your description for the payment instrument group.", - "maxLength" : 300, - "type" : "string" - }, - "properties" : { - "additionalProperties" : { - "type" : "string" - }, - "description" : "Properties of the payment instrument group.", - "type" : "object" - }, - "reference" : { - "description" : "Your reference for the payment instrument group.", - "maxLength" : 150, - "type" : "string" - }, - "txVariant" : { - "description" : "The tx variant of the payment instrument group.", - "type" : "string" - } - }, - "required" : [ - "balancePlatform", - "txVariant" - ], - "type" : "object" - }, - "PaymentInstrumentInfo" : { - "additionalProperties" : false, - "properties" : { - "balanceAccountId" : { - "description" : "The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument.", - "type" : "string" - }, - "bankAccount" : { - "description" : "Contains the business account details.", - "$ref" : "#/components/schemas/BankAccountModel" - }, - "card" : { - "description" : "Contains information about the card. Required when you create a payment instrument of `type` **card**.", - "$ref" : "#/components/schemas/CardInfo" - }, - "description" : { - "description" : "Your description for the payment instrument, maximum 300 characters.", - "maxLength" : 300, - "type" : "string" - }, - "issuingCountryCode" : { - "description" : "The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**.", - "type" : "string" - }, - "paymentInstrumentGroupId" : { - "description" : "The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs.", - "type" : "string" - }, - "reference" : { - "description" : "Your reference for the payment instrument, maximum 150 characters.", - "maxLength" : 150, - "type" : "string" - }, - "status" : { - "description" : "The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**.\n\nPossible values: \n\n * **active**: The payment instrument is active and can be used to make payments. \n\n * **inactive**: The payment instrument is inactive and cannot be used to make payments. \n\n * **suspended**: The payment instrument is suspended, either because it was stolen or lost. \n\n * **closed**: The payment instrument is permanently closed. This action cannot be undone. \n\n", - "enum" : [ - "active", - "closed", - "inactive", - "suspended" - ], - "type" : "string" - }, - "statusComment" : { - "x-addedInVersion" : "2", - "description" : "The status comment provides additional information for the statusReason of the payment instrument.", - "type" : "string" - }, - "statusReason" : { - "x-addedInVersion" : "2", - "description" : "The reason for the status of the payment instrument.\n\nPossible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**.\nIf the reason is **other**, you must also send the `statusComment` parameter describing the status change.", - "enum" : [ - "accountClosure", - "damaged", - "endOfLife", - "expired", - "lost", - "other", - "stolen", - "suspectedFraud", - "transactionRule" - ], - "type" : "string" - }, - "type" : { - "description" : "The type of payment instrument.\n\nPossible values: **card**, **bankAccount**.", - "enum" : [ - "bankAccount", - "card" - ], - "type" : "string" - } - }, - "required" : [ - "balanceAccountId", - "issuingCountryCode", - "type" - ], - "type" : "object" - }, - "PaymentInstrumentRequirement" : { - "additionalProperties" : false, - "properties" : { - "description" : { - "description" : "Specifies the requirements for the payment instrument that need to be included in the request for a particular route.", - "type" : "string" - }, - "issuingCountryCode" : { - "description" : "The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**.", - "type" : "string" - }, - "issuingCountryCodes" : { - "description" : "The two-character ISO-3166-1 alpha-2 country code list for payment instruments.", - "items" : { - "type" : "string" - }, - "type" : "array" - }, - "onlyForCrossBalancePlatform" : { - "description" : "Specifies if the requirement only applies to transfers to another balance platform.", - "type" : "boolean" - }, - "paymentInstrumentType" : { - "description" : "The type of the payment instrument. For example, \"BankAccount\" or \"Card\".", - "enum" : [ - "BankAccount", - "Card" - ], - "type" : "string" - }, - "type" : { - "default" : "paymentInstrumentRequirement", - "description" : "**paymentInstrumentRequirement**", - "enum" : [ - "paymentInstrumentRequirement" - ], - "type" : "string" - } - }, - "required" : [ - "type" - ], - "type" : "object" - }, - "PaymentInstrumentRevealInfo" : { - "additionalProperties" : false, - "properties" : { - "cvc" : { - "description" : "The CVC2 value of the card.", - "type" : "string" - }, - "expiration" : { - "description" : "The expiration date of the card.", - "$ref" : "#/components/schemas/Expiry" - }, - "pan" : { - "description" : "The primary account number (PAN) of the card.", - "type" : "string" - } - }, - "required" : [ - "pan", - "expiration", - "cvc" - ], - "type" : "object" - }, - "PaymentInstrumentRevealRequest" : { - "additionalProperties" : false, - "properties" : { - "encryptedKey" : { - "description" : "The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.", - "type" : "string" - }, - "paymentInstrumentId" : { - "description" : "The unique identifier of the payment instrument, which is the card for which you are managing the PIN.", - "type" : "string" - } - }, - "required" : [ - "paymentInstrumentId", - "encryptedKey" - ], - "type" : "object" - }, - "PaymentInstrumentRevealResponse" : { - "additionalProperties" : false, - "properties" : { - "encryptedData" : { - "description" : "The data encrypted using the `encryptedKey`.", - "type" : "string" - } - }, - "required" : [ - "encryptedData" - ], - "type" : "object" - }, - "PaymentInstrumentUpdateRequest" : { - "additionalProperties" : false, - "properties" : { - "balanceAccountId" : { - "description" : "The unique identifier of the balance account associated with this payment instrument.\n>You can only change the balance account ID if the payment instrument has **inactive** status.", - "type" : "string" - }, - "card" : { - "description" : "Object that contains information about the card payment instrument.", - "$ref" : "#/components/schemas/CardInfo" - }, - "status" : { - "description" : "The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**.\n\nPossible values: \n\n * **active**: The payment instrument is active and can be used to make payments. \n\n * **inactive**: The payment instrument is inactive and cannot be used to make payments. \n\n * **suspended**: The payment instrument is suspended, either because it was stolen or lost. \n\n * **closed**: The payment instrument is permanently closed. This action cannot be undone. \n\n", - "enum" : [ - "active", - "closed", - "inactive", - "suspended" - ], - "type" : "string" - }, - "statusComment" : { - "description" : "Comment for the status of the payment instrument.\n\nRequired if `statusReason` is **other**.", - "type" : "string" - }, - "statusReason" : { - "x-addedInVersion" : "2", - "description" : "The reason for updating the status of the payment instrument.\n\nPossible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**.\nIf the reason is **other**, you must also send the `statusComment` parameter describing the status change.", - "enum" : [ - "accountClosure", - "damaged", - "endOfLife", - "expired", - "lost", - "other", - "stolen", - "suspectedFraud", - "transactionRule" - ], - "type" : "string" - } - }, - "type" : "object" - }, - "Phone" : { - "additionalProperties" : false, - "properties" : { - "number" : { - "description" : "The full phone number provided as a single string. \nFor example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, \n\n or **\"(0031) 611223344\"**.", - "type" : "string" - }, - "type" : { - "description" : "Type of phone number.\nPossible values: \n**Landline**, **Mobile**.\n", - "enum" : [ - "landline", - "mobile" - ], - "type" : "string" - } - }, - "required" : [ - "number", - "type" - ], - "type" : "object" - }, - "PhoneNumber" : { - "additionalProperties" : false, - "properties" : { - "phoneCountryCode" : { - "description" : "The two-character ISO-3166-1 alpha-2 country code of the phone number.\nFor example, **US** or **NL**.", - "type" : "string" - }, - "phoneNumber" : { - "description" : "The phone number.\nThe inclusion of the phone number country code is not necessary.", - "type" : "string" - }, - "phoneType" : { - "description" : "The type of the phone number.\nPossible values: **Landline**, **Mobile**, **SIP**, **Fax**.", - "enum" : [ - "Fax", - "Landline", - "Mobile", - "SIP" - ], - "type" : "string" - } - }, - "type" : "object" - }, - "PinChangeRequest" : { - "additionalProperties" : false, - "properties" : { - "encryptedKey" : { - "description" : "The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.", - "type" : "string" - }, - "encryptedPinBlock" : { - "description" : "The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block).", - "type" : "string" - }, - "paymentInstrumentId" : { - "description" : "The unique identifier of the payment instrument, which is the card for which you are managing the PIN.", - "type" : "string" - }, - "token" : { - "description" : "The 16-digit token that you used to generate the `encryptedPinBlock`.", - "type" : "string" - } - }, - "required" : [ - "paymentInstrumentId", - "encryptedKey", - "token", - "encryptedPinBlock" - ], - "type" : "object" - }, - "PinChangeResponse" : { - "additionalProperties" : false, - "properties" : { - "status" : { - "description" : "The status of the request for PIN change.\n\nPossible values: **completed**, **pending**, **unavailable**.", - "enum" : [ - "completed", - "pending", - "unavailable" - ], - "type" : "string" - } - }, - "required" : [ - "status" - ], - "type" : "object" - }, - "PlatformPaymentConfiguration" : { - "additionalProperties" : false, - "properties" : { - "salesDayClosingTime" : { - "description" : "Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account.\n\nPossible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**.\n\nDefault value: **\"00:00\"**.", - "format" : "time", - "type" : "string" - }, - "settlementDelayDays" : { - "description" : "Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account.\n\nPossible values: **1** to **20**, or **null**.\n* Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement).\n* Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement).\n\nDefault value: **null**.", - "format" : "int32", - "type" : "integer" - } - }, - "type" : "object" - }, - "ProcessingTypesRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "description" : "List of processing types.\n\nPossible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**.\n\n", - "items" : { - "enum" : [ - "atmWithdraw", - "balanceInquiry", - "ecommerce", - "moto", - "pos", - "recurring", - "token", - "unknown" - ], - "type" : "string" - }, - "type" : "array" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "PublicKeyResponse" : { - "additionalProperties" : false, - "properties" : { - "publicKey" : { - "description" : "The public key you need for encrypting a symmetric session key.", - "type" : "string" - }, - "publicKeyExpiryDate" : { - "description" : "The expiry date of the public key.", - "type" : "string" - } - }, - "required" : [ - "publicKey", - "publicKeyExpiryDate" - ], - "type" : "object" - }, - "RegisterSCAFinalResponse" : { - "additionalProperties" : false, - "properties" : { - "success" : { - "description" : "Specifies if the registration was initiated successfully.", - "type" : "boolean" - } - }, - "type" : "object" - }, - "RegisterSCARequest" : { - "additionalProperties" : false, - "properties" : { - "name" : { - "description" : "The name of the SCA device that you are registering. You can use it to help your users identify the device.\n\nIf you do not specify a `name`, Adyen automatically generates one.", - "type" : "string" - }, - "paymentInstrumentId" : { - "description" : "The unique identifier of the payment instrument for which you are registering the SCA device.", - "type" : "string" - }, - "strongCustomerAuthentication" : { - "description" : "Contains information required to register the SCA device.", - "$ref" : "#/components/schemas/DelegatedAuthenticationData" - } - }, - "required" : [ - "paymentInstrumentId", - "strongCustomerAuthentication" - ], - "type" : "object" - }, - "RegisterSCAResponse" : { - "additionalProperties" : false, - "properties" : { - "id" : { - "description" : "The unique identifier of the SCA device you are registering.", - "type" : "string" - }, - "paymentInstrumentId" : { - "description" : "The unique identifier of the payment instrument for which you are registering the SCA device.", - "type" : "string" - }, - "sdkInput" : { - "description" : "A string that you must pass to the authentication SDK to continue with the registration process.", - "maxLength" : 20000, - "type" : "string" - }, - "success" : { - "description" : "Specifies if the registration was initiated successfully.", - "type" : "boolean" - } - }, - "type" : "object" - }, - "RemediatingAction" : { - "additionalProperties" : false, - "properties" : { - "code" : { - "description" : "The remediating action code.", - "type" : "string" - }, - "message" : { - "description" : "A description of how you can resolve the verification error.", - "type" : "string" - } - }, - "type" : "object" - }, - "Repayment" : { - "additionalProperties" : false, - "properties" : { - "basisPoints" : { - "description" : "The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp).", - "format" : "int32", - "type" : "integer" - }, - "term" : { - "description" : "An object containing the details of the configuration for repayment term.", - "$ref" : "#/components/schemas/RepaymentTerm" - }, - "threshold" : { - "description" : "An object containing the details of the 30-day repayment threshold.", - "$ref" : "#/components/schemas/ThresholdRepayment" - } - }, - "required" : [ - "basisPoints" - ], - "type" : "object" - }, - "RepaymentTerm" : { - "additionalProperties" : false, - "properties" : { - "estimatedDays" : { - "description" : "The estimated term for repaying the grant, in days.", - "format" : "int32", - "type" : "integer" - }, - "maximumDays" : { - "description" : "The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**.", - "format" : "int32", - "type" : "integer" - } - }, - "required" : [ - "estimatedDays" - ], - "type" : "object" - }, - "RestServiceError" : { - "additionalProperties" : false, - "properties" : { - "detail" : { - "description" : "A human-readable explanation specific to this occurrence of the problem.", - "type" : "string" - }, - "errorCode" : { - "description" : "A code that identifies the problem type.", - "type" : "string" - }, - "instance" : { - "description" : "A unique URI that identifies the specific occurrence of the problem.", - "type" : "string" - }, - "invalidFields" : { - "description" : "Detailed explanation of each validation error, when applicable.", - "items" : { - "$ref" : "#/components/schemas/InvalidField" - }, - "type" : "array" - }, - "requestId" : { - "description" : "A unique reference for the request, essentially the same as `pspReference`.", - "type" : "string" - }, - "response" : { - "description" : "JSON response payload.", - "$ref" : "#/components/schemas/JSONObject" - }, - "status" : { - "description" : "The HTTP status code.", - "format" : "int32", - "type" : "integer" - }, - "title" : { - "description" : "A short, human-readable summary of the problem type.", - "type" : "string" - }, - "type" : { - "description" : "A URI that identifies the problem type, pointing to human-readable documentation on this problem type.", - "type" : "string" - } - }, - "required" : [ - "type", - "errorCode", - "title", - "detail", - "status" - ], - "type" : "object" - }, - "RevealPinRequest" : { - "additionalProperties" : false, - "properties" : { - "encryptedKey" : { - "description" : "The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen.", - "type" : "string" - }, - "paymentInstrumentId" : { - "description" : "The unique identifier of the payment instrument, which is the card for which you are managing the PIN.", - "type" : "string" - } - }, - "required" : [ - "paymentInstrumentId", - "encryptedKey" - ], - "type" : "object" - }, - "RevealPinResponse" : { - "additionalProperties" : false, - "properties" : { - "encryptedPinBlock" : { - "description" : "The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block).", - "type" : "string" - }, - "token" : { - "description" : "The 16-digit token that you need to extract the `encryptedPinBlock`.", - "type" : "string" - } - }, - "required" : [ - "encryptedPinBlock", - "token" - ], - "type" : "object" - }, - "RiskScores" : { - "additionalProperties" : false, - "properties" : { - "mastercard" : { - "description" : "Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk).", - "format" : "int32", - "type" : "integer" - }, - "visa" : { - "description" : "Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk).", - "format" : "int32", - "type" : "integer" - } - }, - "type" : "object" - }, - "RiskScoresRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "$ref" : "#/components/schemas/RiskScores" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "SELocalAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace.", - "maxLength" : 10, - "minLength" : 7, - "type" : "string" - }, - "clearingNumber" : { - "description" : "The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace.", - "maxLength" : 5, - "minLength" : 4, - "type" : "string" - }, - "type" : { - "default" : "seLocal", - "description" : "**seLocal**", - "enum" : [ - "seLocal" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "accountNumber", - "clearingNumber" - ], - "type" : "object" - }, - "SGLocalAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The 4- to 19-digit bank account number, without separators or whitespace.", - "maxLength" : 19, - "minLength" : 4, - "type" : "string" - }, - "bic" : { - "description" : "The bank's 8- or 11-character BIC or SWIFT code.", - "maxLength" : 11, - "minLength" : 8, - "type" : "string" - }, - "type" : { - "default" : "sgLocal", - "description" : "**sgLocal**", - "enum" : [ - "sgLocal" - ], - "type" : "string" - } - }, - "required" : [ - "accountNumber", - "bic" - ], - "type" : "object" - }, - "SameAmountRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "type" : "boolean" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "SameCounterpartyRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "type" : "boolean" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "SearchRegisteredDevicesResponse" : { - "additionalProperties" : false, - "properties" : { - "data" : { - "description" : "Contains a list of registered SCA devices and their corresponding details.", - "items" : { - "$ref" : "#/components/schemas/Device" - }, - "type" : "array" - }, - "itemsTotal" : { - "description" : "The total amount of registered SCA devices that match the query parameters.", - "format" : "int32", - "type" : "integer" - }, - "link" : { - "description" : "Contains links to the list pages.", - "$ref" : "#/components/schemas/Link" - }, - "pagesTotal" : { - "description" : "The total amount of list pages.", - "format" : "int32", - "type" : "integer" - } - }, - "type" : "object" - }, - "SourceAccountTypesRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "description" : "The list of source account types to be evaluated.", - "items" : { - "enum" : [ - "balanceAccount", - "businessAccount" - ], - "type" : "string" - }, - "type" : "array" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "StringMatch" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**,", - "enum" : [ - "contains", - "endsWith", - "isEqualTo", - "startsWith" - ], - "type" : "string" - }, - "value" : { - "description" : "The string to be matched.", - "type" : "string" - } - }, - "type" : "object" - }, - "SweepConfigurationV2" : { - "additionalProperties" : false, - "properties" : { - "category" : { - "x-addedInVersion" : "2", - "description" : "The type of transfer that results from the sweep.\n\nPossible values:\n\n - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).\n\n- **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform.\n\nRequired when setting `priorities`.", - "enum" : [ - "bank", - "internal", - "platformPayment" - ], - "type" : "string" - }, - "counterparty" : { - "description" : "The destination or the source of the funds, depending on the sweep `type`.\n\nEither a `balanceAccountId`, `transferInstrumentId`, or `merchantAccount` is required.", - "$ref" : "#/components/schemas/SweepCounterparty" - }, - "currency" : { - "description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**.\n\nThe sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).", - "type" : "string" - }, - "description" : { - "description" : "The message that will be used in the sweep transfer's description body with a maximum length of 140 characters.\n\nIf the message is longer after replacing placeholders, the message will be cut off at 140 characters.", - "type" : "string" - }, - "id" : { - "description" : "The unique identifier of the sweep.", - "readOnly" : true, - "type" : "string" - }, - "priorities" : { - "x-addedInVersion" : "2", - "description" : "The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities.\n\nPossible values:\n\n* **regular**: for normal, low-value transactions.\n\n* **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.\n\n* **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.\n\n* **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).\n\n* **crossBorder**: for high-value transfers to a recipient in a different country.\n\n* **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).\n\nSet `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).", - "items" : { - "enum" : [ - "crossBorder", - "fast", - "instant", - "internal", - "regular", - "wire" - ], - "type" : "string" - }, - "type" : "array" - }, - "reason" : { - "description" : "The reason for disabling the sweep.", - "enum" : [ - "accountHierarchyNotActive", - "amountLimitExceeded", - "approved", - "balanceAccountTemporarilyBlockedByTransactionRule", - "counterpartyAccountBlocked", - "counterpartyAccountClosed", - "counterpartyAccountNotFound", - "counterpartyAddressRequired", - "counterpartyBankTimedOut", - "counterpartyBankUnavailable", - "declined", - "declinedByTransactionRule", - "directDebitNotSupported", - "error", - "notEnoughBalance", - "pendingApproval", - "pendingExecution", - "refusedByCounterpartyBank", - "refusedByCustomer", - "routeNotFound", - "scaFailed", - "transferInstrumentDoesNotExist", - "unknown" - ], - "readOnly" : true, - "type" : "string" - }, - "reasonDetail" : { - "description" : "The human readable reason for disabling the sweep.", - "readOnly" : true, - "type" : "string" - }, - "reference" : { - "description" : "Your reference for the sweep configuration.", - "maxLength" : 80, - "type" : "string" - }, - "referenceForBeneficiary" : { - "description" : "The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.", - "maxLength" : 80, - "type" : "string" - }, - "schedule" : { - "description" : "The schedule when the `triggerAmount` is evaluated. If the balance meets the threshold, funds are pushed out of or pulled in to the balance account.", - "$ref" : "#/components/schemas/SweepSchedule" - }, - "status" : { - "description" : "The status of the sweep. If not provided, by default, this is set to **active**.\n\nPossible values: \n\n * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. \n\n * **inactive**: the sweep is disabled and cannot be triggered. \n\n", - "enum" : [ - "active", - "inactive" - ], - "type" : "string" - }, - "sweepAmount" : { - "description" : "The amount that must be pushed out or pulled in. You can configure either `sweepAmount` or `targetAmount`, not both.", - "$ref" : "#/components/schemas/Amount" - }, - "targetAmount" : { - "description" : "The amount that must be available in the balance account after the sweep. You can configure either `sweepAmount` or `targetAmount`, not both.", - "$ref" : "#/components/schemas/Amount" - }, - "triggerAmount" : { - "description" : "The threshold amount that triggers the sweep. If not provided, by default, the amount is set to zero. The `triggerAmount` is evaluated according to the specified `schedule.type`.\n\n* For `type` **pull**, if the balance is less than or equal to the `triggerAmount`, funds are pulled in to the balance account.\n\n* For `type` **push**, if the balance is more than or equal to the `triggerAmount`, funds are pushed out of the balance account.", - "$ref" : "#/components/schemas/Amount" - }, - "type" : { - "default" : "push", - "description" : "The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**.\n\nPossible values:\n\n * **push**: _push out funds_ to a destination balance account or transfer instrument.\n\n * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.", - "enum" : [ - "pull", - "push" - ], - "type" : "string" - } - }, - "required" : [ - "id", - "schedule", - "currency", - "counterparty" - ], - "type" : "object" - }, - "SweepCounterparty" : { - "additionalProperties" : false, - "properties" : { - "balanceAccountId" : { - "description" : "The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).\n\n > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**.", - "type" : "string" - }, - "merchantAccount" : { - "description" : "The merchant account that will be the source of funds.\n\nYou can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen.", - "type" : "string" - }, - "transferInstrumentId" : { - "description" : "The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type`\n\n. To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**.\n\nTop-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**.", - "type" : "string" - } - }, - "type" : "object" - }, - "SweepSchedule" : { - "additionalProperties" : false, - "properties" : { - "cronExpression" : { - "description" : "A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. \nFor example, **30 17 * * MON** schedules a sweep every Monday at 17:30.\n\nThe expression must have five values separated by a single space in the following order:\n\n* Minute: **0-59**\n\n* Hour: **0-23**\n\n* Day of the month: **1-31**\n\n* Month: **1-12** or **JAN-DEC**\n\n* Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**.\n\nThe following non-standard characters are supported: *****, **L**, **#**, **W** and **/**. See [crontab guru](https://crontab.guru/) for more examples.\n\nRequired when `type` is **cron**.\n", - "type" : "string" - }, - "type" : { - "description" : "The schedule type.\n\nPossible values:\n\n* **cron**: push out funds based on a `cronExpression`.\n\n* **daily**: push out funds daily at 07:00 AM CET.\n\n* **weekly**: push out funds every Monday at 07:00 AM CET.\n\n* **monthly**: push out funds every first of the month at 07:00 AM CET.\n\n* **balance**: execute the sweep instantly if the `triggerAmount` is reached.\n", - "enum" : [ - "daily", - "weekly", - "monthly", - "balance", - "cron" - ], - "type" : "string" - } - }, - "required" : [ - "type" - ], - "type" : "object" - }, - "ThresholdRepayment" : { - "additionalProperties" : false, - "properties" : { - "amount" : { - "description" : "The amount to be repaid on a 30-day basis.", - "$ref" : "#/components/schemas/Amount" - } - }, - "required" : [ - "amount" - ], - "type" : "object" - }, - "TimeOfDay" : { - "additionalProperties" : false, - "properties" : { - "endTime" : { - "description" : "The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**.\n\n", - "type" : "string" - }, - "startTime" : { - "description" : "The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**.\n\n", - "type" : "string" - } - }, - "type" : "object" - }, - "TimeOfDayRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "$ref" : "#/components/schemas/TimeOfDay" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "TokenRequestorsRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "items" : { - "type" : "string" - }, - "type" : "array" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "TotalAmountRestriction" : { - "additionalProperties" : false, - "properties" : { - "operation" : { - "description" : "Defines how the condition must be evaluated.", - "type" : "string" - }, - "value" : { - "description" : "The amount value and currency.", - "$ref" : "#/components/schemas/Amount" - } - }, - "required" : [ - "operation" - ], - "type" : "object" - }, - "TransactionRule" : { - "additionalProperties" : false, - "properties" : { - "aggregationLevel" : { - "x-addedInVersion" : "2", - "description" : "The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`.\n\nIf not provided, by default, the rule will accumulate data at the **paymentInstrument** level.\n\nPossible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**.", - "type" : "string" - }, - "description" : { - "description" : "Your description for the transaction rule.", - "maxLength" : 300, - "type" : "string" - }, - "endDate" : { - "description" : "The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**.\n\nIf not provided, the rule will be evaluated until the rule status is set to **inactive**.", - "type" : "string" - }, - "entityKey" : { - "x-addedInVersion" : "2", - "description" : "The type and unique identifier of the resource to which the rule applies.", - "$ref" : "#/components/schemas/TransactionRuleEntityKey" - }, - "id" : { - "description" : "The unique identifier of the transaction rule.", - "type" : "string" - }, - "interval" : { - "description" : "The [time interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) when the rule conditions apply.", - "$ref" : "#/components/schemas/TransactionRuleInterval" - }, - "outcomeType" : { - "x-addedInVersion" : "2", - "description" : "The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule.\n\nPossible values:\n* **hardBlock**: the transaction is declined.\n* **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined.\n\nDefault value: **hardBlock**.\n\n> **scoreBased** is not allowed when `requestType` is **bankTransfer**.", - "enum" : [ - "enforceSCA", - "hardBlock", - "scoreBased", - "timedBlock" - ], - "type" : "string" - }, - "reference" : { - "description" : "Your reference for the transaction rule.", - "maxLength" : 150, - "type" : "string" - }, - "requestType" : { - "x-addedInVersion" : "2", - "description" : "Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**.\n\nPossible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**.", - "enum" : [ - "authentication", - "authorization", - "bankTransfer", - "tokenization" - ], - "type" : "string" - }, - "ruleRestrictions" : { - "x-addedInVersion" : "2", - "description" : "Contains one or more objects that define the [rule conditions](https://docs.adyen.com/issuing/transaction-rules#conditions). Each object must have a value and an operation which determines how the values must be evaluated.\n\nFor example, a `countries` object can have a list of country codes **[\"US\", \"CA\"]** in the `value` field and **anyMatch** in the `operation` field.", - "$ref" : "#/components/schemas/TransactionRuleRestrictions" - }, - "score" : { - "x-addedInVersion" : "2", - "description" : "A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**.", - "format" : "int32", - "type" : "integer" - }, - "startDate" : { - "description" : "The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**.\n\nIf not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. \n\n", - "type" : "string" - }, - "status" : { - "description" : "The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created \nwith an **active** status. \n\nPossible values: **active**, **inactive**.", - "enum" : [ - "active", - "inactive" - ], - "type" : "string" - }, - "type" : { - "description" : "The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data.\n\nPossible values:\n * **blockList**: decline a transaction when the conditions are met.\n * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met.\n * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met.\n", - "enum" : [ - "allowList", - "blockList", - "maxUsage", - "velocity" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "description", - "reference", - "entityKey", - "interval", - "ruleRestrictions" - ], - "type" : "object" - }, - "TransactionRuleEntityKey" : { - "additionalProperties" : false, - "properties" : { - "entityReference" : { - "description" : "The unique identifier of the resource.", - "type" : "string" - }, - "entityType" : { - "description" : "The type of resource.\n\nPossible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**.", - "type" : "string" - } - }, - "type" : "object" - }, - "TransactionRuleInfo" : { - "additionalProperties" : false, - "properties" : { - "aggregationLevel" : { - "x-addedInVersion" : "2", - "description" : "The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`.\n\nIf not provided, by default, the rule will accumulate data at the **paymentInstrument** level.\n\nPossible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**.", - "type" : "string" - }, - "description" : { - "description" : "Your description for the transaction rule.", - "maxLength" : 300, - "type" : "string" - }, - "endDate" : { - "description" : "The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**.\n\nIf not provided, the rule will be evaluated until the rule status is set to **inactive**.", - "type" : "string" - }, - "entityKey" : { - "x-addedInVersion" : "2", - "description" : "The type and unique identifier of the resource to which the rule applies.", - "$ref" : "#/components/schemas/TransactionRuleEntityKey" - }, - "interval" : { - "description" : "The [time interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) when the rule conditions apply.", - "$ref" : "#/components/schemas/TransactionRuleInterval" - }, - "outcomeType" : { - "x-addedInVersion" : "2", - "description" : "The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule.\n\nPossible values:\n* **hardBlock**: the transaction is declined.\n* **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined.\n\nDefault value: **hardBlock**.\n\n> **scoreBased** is not allowed when `requestType` is **bankTransfer**.", - "enum" : [ - "enforceSCA", - "hardBlock", - "scoreBased", - "timedBlock" - ], - "type" : "string" - }, - "reference" : { - "description" : "Your reference for the transaction rule.", - "maxLength" : 150, - "type" : "string" - }, - "requestType" : { - "x-addedInVersion" : "2", - "description" : "Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**.\n\nPossible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**.", - "enum" : [ - "authentication", - "authorization", - "bankTransfer", - "tokenization" - ], - "type" : "string" - }, - "ruleRestrictions" : { - "x-addedInVersion" : "2", - "description" : "Contains one or more objects that define the [rule conditions](https://docs.adyen.com/issuing/transaction-rules#conditions). Each object must have a value and an operation which determines how the values must be evaluated.\n\nFor example, a `countries` object can have a list of country codes **[\"US\", \"CA\"]** in the `value` field and **anyMatch** in the `operation` field.", - "$ref" : "#/components/schemas/TransactionRuleRestrictions" - }, - "score" : { - "x-addedInVersion" : "2", - "description" : "A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**.", - "format" : "int32", - "type" : "integer" - }, - "startDate" : { - "description" : "The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**.\n\nIf not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. \n\n", - "type" : "string" - }, - "status" : { - "description" : "The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created \nwith an **active** status. \n\nPossible values: **active**, **inactive**.", - "enum" : [ - "active", - "inactive" - ], - "type" : "string" - }, - "type" : { - "description" : "The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data.\n\nPossible values:\n * **blockList**: decline a transaction when the conditions are met.\n * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met.\n * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met.\n", - "enum" : [ - "allowList", - "blockList", - "maxUsage", - "velocity" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "description", - "reference", - "entityKey", - "interval", - "ruleRestrictions" - ], - "type" : "object" - }, - "TransactionRuleInterval" : { - "additionalProperties" : false, - "properties" : { - "dayOfMonth" : { - "x-addedInVersion" : "2", - "description" : "The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month.", - "format" : "int32", - "type" : "integer" - }, - "dayOfWeek" : { - "x-addedInVersion" : "2", - "description" : "The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**.\n\nPossible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**.", - "enum" : [ - "friday", - "monday", - "saturday", - "sunday", - "thursday", - "tuesday", - "wednesday" - ], - "type" : "string" - }, - "duration" : { - "x-addedInVersion" : "2", - "description" : "The duration, which you can specify in hours, days, weeks, or months. The maximum duration is 90 days or an equivalent in other units. Required when the `type` is **rolling** or **sliding**.", - "$ref" : "#/components/schemas/Duration" - }, - "timeOfDay" : { - "x-addedInVersion" : "2", - "description" : "The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**.", - "type" : "string" - }, - "timeZone" : { - "x-addedInVersion" : "2", - "description" : "The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**.", - "type" : "string" - }, - "type" : { - "description" : "The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset.\n\nPossible values:\n * **perTransaction**: conditions are evaluated and the counters are reset for every transaction.\n * **daily**: the counters are reset daily at 00:00:00 CET.\n * **weekly**: the counters are reset every Monday at 00:00:00 CET. \n * **monthly**: the counters reset every first day of the month at 00:00:00 CET. \n * **lifetime**: conditions are applied to the lifetime of the payment instrument.\n * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET.\n * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify.", - "enum" : [ - "daily", - "lifetime", - "monthly", - "perTransaction", - "rolling", - "sliding", - "weekly" - ], - "type" : "string" - } - }, - "required" : [ - "type" - ], - "type" : "object" - }, - "TransactionRuleResponse" : { - "additionalProperties" : false, - "properties" : { - "transactionRule" : { - "description" : "The transaction rule.", + "updatePaymentInstrumentStatus" : { + "$ref" : "#/components/examples/patch-paymentInstruments-id-updatePaymentInstrumentStatus-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 2, + "x-methodName" : "updatePaymentInstrument" + } + }, + "/paymentInstruments/{id}/networkTokens" : { + "get" : { + "tags" : [ "Payment instruments" ], + "summary" : "List network tokens", + "description" : "List the network tokens connected to a payment instrument.", + "operationId" : "get-paymentInstruments-id-networkTokens", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the payment instrument.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/ListNetworkTokensResponse" + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 6, + "x-methodName" : "listNetworkTokens" + } + }, + "/paymentInstruments/{id}/reveal" : { + "get" : { + "tags" : [ "Payment instruments" ], + "summary" : "Get the PAN of a payment instrument", + "description" : "Returns the primary account number (PAN) of a payment instrument.\n\nTo make this request, your API credential must have the following [role](https://docs.adyen.com/issuing/manage-access/api-credentials-web-service#api-permissions):\n\n* Balance Platform BCL PCI role", + "operationId" : "get-paymentInstruments-id-reveal", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the payment instrument.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PaymentInstrumentRevealInfo" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-paymentInstruments-id-reveal-success-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 5, + "x-methodName" : "getPanOfPaymentInstrument" + } + }, + "/paymentInstruments/{id}/transactionRules" : { + "get" : { + "tags" : [ "Payment instruments" ], + "summary" : "Get all transaction rules for a payment instrument", + "description" : "Returns a list of transaction rules associated with a payment instrument.", + "operationId" : "get-paymentInstruments-id-transactionRules", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the payment instrument.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/TransactionRulesResponse" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-paymentInstruments-id-transactionRules-success-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 7, + "x-methodName" : "getAllTransactionRulesForPaymentInstrument" + } + }, + "/pins/change" : { + "post" : { + "tags" : [ "Manage card PIN" ], + "summary" : "Change a card PIN", + "description" : "Changes the personal identification number (PIN) of a specified card.\n\nTo make this request, your API credential must have the following role:\n* Bank Issuing PIN Change Webservice role", + "operationId" : "post-pins-change", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PinChangeRequest" + }, + "examples" : { + "requestPinChange" : { + "$ref" : "#/components/examples/post-pins-change-requestPinChange" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PinChangeResponse" + }, + "examples" : { + "requestPinChange" : { + "$ref" : "#/components/examples/post-pins-change-requestPinChange-200" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 2, + "x-methodName" : "changeCardPin" + } + }, + "/pins/reveal" : { + "post" : { + "tags" : [ "Manage card PIN" ], + "summary" : "Reveal a card PIN", + "description" : "Returns an encrypted PIN block that contains the PIN of a specified card. You can use the decrypted data to reveal the PIN in your user interface.\n\nTo make this request, your API credential must have the following role:\n* Bank Issuing PIN Reveal Webservice role", + "operationId" : "post-pins-reveal", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RevealPinRequest" + }, + "examples" : { + "requestPinBlock" : { + "$ref" : "#/components/examples/post-pins-reveal-requestPinBlock" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RevealPinResponse" + }, + "examples" : { + "requestPinBlock" : { + "$ref" : "#/components/examples/post-pins-reveal-requestPinBlock-200" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 2, + "x-methodName" : "revealCardPin" + } + }, + "/publicKey" : { + "get" : { + "tags" : [ "Manage card PIN" ], + "summary" : "Get an RSA public key", + "description" : "Get an [RSA](https://en.wikipedia.org/wiki/RSA_(cryptosystem)) public key to encrypt or decrypt card data.\n\n You need the RSA public key to generate the `encryptedKey` required to:\n- [Change a PIN](https://docs.adyen.com/api-explorer/balanceplatform/2/post/pins/change).\n- [Reveal a PIN](https://docs.adyen.com/api-explorer/balanceplatform/2/post/pins/reveal).\n- [Reveal a PAN](https://docs.adyen.com/api-explorer/balanceplatform/2/post/paymentInstruments/reveal).", + "operationId" : "get-publicKey", + "parameters" : [ { + "name" : "purpose", + "in" : "query", + "description" : "The purpose of the public key.\n\nPossible values: **pinChange**, **pinReveal**, **panReveal**.\n\nDefault value: **pinReveal**.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "format", + "in" : "query", + "description" : "The encoding format of public key.\n\nPossible values: **jwk**, **pem**.\n\nDefault value: **pem**.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PublicKeyResponse" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-publicKey-success-200" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 3, + "x-methodName" : "publicKey" + } + }, + "/registeredDevices" : { + "get" : { + "tags" : [ "Manage SCA devices" ], + "summary" : "Get a list of registered SCA devices", + "description" : "Get a paginated list of the SCA devices you have currently registered for a specific payment instrument.", + "operationId" : "get-registeredDevices", + "parameters" : [ { + "name" : "paymentInstrumentId", + "in" : "query", + "description" : "The unique identifier of a payment instrument. It limits the returned list to SCA devices associated to this payment instrument.", + "required" : true, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + }, { + "name" : "pageNumber", + "in" : "query", + "description" : "The index of the page to retrieve. The index of the first page is 0 (zero).\n\nDefault: 0.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + }, { + "name" : "pageSize", + "in" : "query", + "description" : "The number of items to have on a page.\n\nDefault: 20. Maximum: 100.", + "required" : false, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "integer", + "format" : "int32" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/SearchRegisteredDevicesResponse" + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 3, + "x-methodName" : "listRegisteredScaDevices" + }, + "post" : { + "tags" : [ "Manage SCA devices" ], + "summary" : "Initiate the registration of an SCA device", + "description" : "Initiates the registration of a user's device for Strong Customer Authentication (SCA). You can register SCA devices for [business accounts](https://docs.adyen.com/platforms/business-accounts/sca/register-devices) or [Adyen-issued cards](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/register-devices).\n\nFor a successful request, the device must be eligible for SCA.", + "operationId" : "post-registeredDevices", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RegisterSCARequest" + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RegisterSCAResponse" + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 1, + "x-methodName" : "initiateRegistrationOfScaDevice" + } + }, + "/registeredDevices/{deviceId}/associations" : { + "post" : { + "tags" : [ "Manage SCA devices" ], + "summary" : "Initiate an association between an SCA device and a resource", + "description" : "Initiates an association between a user's registered SCA device and an Adyen resource. For example, you can associate an SCA device with additional [business accounts](https://docs.adyen.com/platforms/business-accounts/sca/register-devices) or [Adyen-issued cards](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/register-devices).", + "operationId" : "post-registeredDevices-deviceId-associations", + "parameters" : [ { + "name" : "deviceId", + "in" : "path", + "description" : "The unique identifier of the SCA device that you are associating with a resource.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AssociationInitiateRequest" + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AssociationInitiateResponse" + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "2", + "x-sortIndex" : 4, + "x-methodName" : "initiateAssociationBetweenScaDeviceAndResource" + }, + "patch" : { + "tags" : [ "Manage SCA devices" ], + "summary" : "Complete an association between an SCA device and a resource", + "description" : "Completes an association between a user's registered SCA device and an Adyen resource. For example, you can associate an SCA device with additional [business accounts](https://docs.adyen.com/platforms/business-accounts/sca/register-devices) or [Adyen-issued cards](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/register-devices).\n\nTo complete the association, this endpoint validates the authentication data of the registered device.", + "operationId" : "patch-registeredDevices-deviceId-associations", + "parameters" : [ { + "name" : "deviceId", + "in" : "path", + "description" : "The unique identifier of the SCA device that you are associating with a resource.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AssociationFinaliseRequest" + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AssociationFinaliseResponse" + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "2", + "x-sortIndex" : 5, + "x-methodName" : "completeAssociationBetweenScaDeviceAndResource" + } + }, + "/registeredDevices/{id}" : { + "delete" : { + "tags" : [ "Manage SCA devices" ], + "summary" : "Delete a registration of an SCA device", + "description" : "Deletes an SCA device from the list of registered devices of a specific payment instrument.", + "operationId" : "delete-registeredDevices-id", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the SCA device.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "paymentInstrumentId", + "in" : "query", + "description" : "The unique identifier of the payment instrument linked to the SCA device.", + "required" : true, + "style" : "form", + "explode" : true, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "204" : { + "description" : "No Content - look at the actual response code for the status of the request. " + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 6, + "x-methodName" : "deleteRegistrationOfScaDevice" + }, + "patch" : { + "tags" : [ "Manage SCA devices" ], + "summary" : "Complete the registration of an SCA device", + "description" : "Completes the registration of an SCA device by validating the authentication data of the device. You can register SCA devices for [business accounts](https://docs.adyen.com/platforms/business-accounts/sca) or [Adyen-issued cards](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk).\n\n", + "operationId" : "patch-registeredDevices-id", + "parameters" : [ { + "name" : "id", + "in" : "path", + "description" : "The unique identifier of the SCA device. You obtain this `id` in the response of a POST [/registeredDevices](https://docs.adyen.com/api-explorer/balanceplatform/2/post/registeredDevices#responses-200-id) request.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RegisterSCARequest" + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RegisterSCAFinalResponse" + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 2, + "x-methodName" : "completeRegistrationOfScaDevice" + } + }, + "/transactionRules" : { + "post" : { + "tags" : [ "Transaction rules" ], + "summary" : "Create a transaction rule", + "description" : "Creates a [transaction rule](https://docs.adyen.com/issuing/transaction-rules). When your user makes a transaction with their Adyen-issued card, the transaction is allowed or declined based on the conditions and outcome defined in the transaction rule. You can apply the transaction rule to several cards, such as all the cards in your platform, or to a specific card. For use cases, see [examples](https://docs.adyen.com/issuing/transaction-rules/examples).", + "operationId" : "post-transactionRules", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/TransactionRuleInfo" + }, + "examples" : { + "createTransactionRuleAllowPos" : { + "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleAllowPos" + }, + "createTransactionRuleIncreaseScore" : { + "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleIncreaseScore" + }, + "createTransactionRuleLimitSliding" : { + "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleLimitSliding" + }, + "createTransactionRuleLimitTransaction" : { + "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleLimitTransaction" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { "$ref" : "#/components/schemas/TransactionRule" - } - }, - "type" : "object" - }, - "TransactionRuleRestrictions" : { - "additionalProperties" : false, - "properties" : { - "activeNetworkTokens" : { - "description" : "The total number of tokens that a card can have across different kinds of digital wallets on the user's phones, watches, or other wearables.\n\nSupported operations: **equals**, **notEquals**, **greaterThanOrEqualTo**, **greaterThan**, **lessThanOrEqualTo**, **lessThan**.", - "$ref" : "#/components/schemas/ActiveNetworkTokensRestriction" - }, - "brandVariants" : { - "description" : "List of card brand variants and the operation.\n\nSupported operations: **anyMatch**, **noneMatch**.", - "$ref" : "#/components/schemas/BrandVariantsRestriction" - }, - "counterpartyBank" : { - "description" : "Contains a list of counterparty financial institutions and how they must be evaluated.\n\nSupported operations: **anyMatch**, **noneMatch**.", - "$ref" : "#/components/schemas/CounterpartyBankRestriction" - }, - "counterpartyTypes" : { - "description" : "Contains a list of counterparty types and how they must be evaluated.\n\nSupported operations: **anyMatch**, **noneMatch**.\n\nSupported value inputs:\n- **balanceAccount**\n- **bankAccount**\n- **card**\n- **transferInstrument**", - "$ref" : "#/components/schemas/CounterpartyTypesRestriction" - }, - "countries" : { - "description" : "List of countries and the operation.\n\nSupported operations: **anyMatch**, **noneMatch**.", - "$ref" : "#/components/schemas/CountriesRestriction" - }, - "dayOfWeek" : { - "description" : "List of week days and the operation. Supported operations: **anyMatch**, **noneMatch**.", - "$ref" : "#/components/schemas/DayOfWeekRestriction" - }, - "differentCurrencies" : { - "description" : "Compares the currency of the payment against the currency of the payment instrument, and specifies the operation.\n\nSupported operations: **equals**, **notEquals**.", - "$ref" : "#/components/schemas/DifferentCurrenciesRestriction" - }, - "entryModes" : { - "description" : "List of point-of-sale entry modes and the operation..\n\nSupported operations: **anyMatch**, **noneMatch**.", - "$ref" : "#/components/schemas/EntryModesRestriction" - }, - "internationalTransaction" : { - "description" : "Indicates whether transaction is an international transaction and specifies the operation.\n\nSupported operations: **equals**, **notEquals**.", - "$ref" : "#/components/schemas/InternationalTransactionRestriction" - }, - "matchingTransactions" : { - "description" : "The number of transactions and the operation.\n\nSupported operations: **equals**, **notEquals**, **greaterThanOrEqualTo**, **greaterThan**, **lessThanOrEqualTo**, **lessThan**.", - "$ref" : "#/components/schemas/MatchingTransactionsRestriction" - }, - "matchingValues" : { - "description" : "Checks if a user has recently made multiple transfers with the specified values.\n\nTo use this restriction, you must:\n\n- Set the rule `type` to **velocity**.\n\n- Specify a time `interval`.\n\n- Specify a number of `matchingTransactions`.\n\nSupported operation: **allMatch**.\n\nSupported value inputs:\n- **merchantId** and **acquirerId**\n- **amount** and **currency**\n- **merchantName**.", - "$ref" : "#/components/schemas/MatchingValuesRestriction" - }, - "mccs" : { - "description" : "List of merchant category codes (MCCs) and the operation.\n\nSupported operations: **anyMatch**, **noneMatch**.", - "$ref" : "#/components/schemas/MccsRestriction" - }, - "merchantNames" : { - "description" : "List of names that will be compared to the merchant name according to the matching type.\n\nSupported operations: **anyMatch**, **noneMatch**.", - "$ref" : "#/components/schemas/MerchantNamesRestriction" - }, - "merchants" : { - "description" : "List of merchant ID and acquirer ID pairs, and the operation.\n\nSupported operations: **anyMatch**, **noneMatch**.", - "$ref" : "#/components/schemas/MerchantsRestriction" - }, - "processingTypes" : { - "description" : "List of processing types and the operation.\n\nSupported operations: **anyMatch**, **noneMatch**.", - "$ref" : "#/components/schemas/ProcessingTypesRestriction" - }, - "riskScores" : { - "description" : "Risk scores provided by specific sources. The same operation applies to all scores.\n\nCurrent sources available: **visa**, **mastercard**\n\nSupported operations: **equals**, **notEquals**, **greaterThanOrEqualTo**, **greaterThan**, **lessThanOrEqualTo**, **lessThan**.", - "$ref" : "#/components/schemas/RiskScoresRestriction" - }, - "sameAmountRestriction" : { - "description" : "Checks if a user has recently sent the same amount of funds in multiple transfers.\n\nTo use this restriction, you must:\n\n- Set the rule `type` to **velocity**.\n\n- Specify a time `interval`.\n\n- Specify a number of `matchingTransactions`.\n\nSupported operation: **equals**.", - "$ref" : "#/components/schemas/SameAmountRestriction" - }, - "sameCounterpartyRestriction" : { - "description" : "Checks if a user has recently made multiple transfers to the same counterparty.\n\nTo use this restriction, you must:\n\n- Set the rule `type` to **velocity**.\n\n- Specify a time `interval`.\n\n- Specify a number of `matchingTransactions`.\n\nSupported operations: **equals**.", - "$ref" : "#/components/schemas/SameCounterpartyRestriction" - }, - "sourceAccountTypes" : { - "description" : "Contains a list of source account types and how they must be evaluated.\n\nSupported operations: **anyMatch**, **noneMatch**.\n\nSupported value inputs:\n- **balanceAccount**\n- **businessAccount**.", - "$ref" : "#/components/schemas/SourceAccountTypesRestriction" - }, - "timeOfDay" : { - "description" : "A start and end time in a time-only ISO-8601 extended offset format. Supported operations: **equals**, **notEquals**.", - "$ref" : "#/components/schemas/TimeOfDayRestriction" - }, - "tokenRequestors" : { - "description" : "List of token requestor IDs and the operation.\n\nSupported operations: **anyMatch**, **noneMatch**.", - "$ref" : "#/components/schemas/TokenRequestorsRestriction" - }, - "totalAmount" : { - "description" : "The total amount and the operation.\n\nSupported operations: **equals**, **notEquals**, **greaterThanOrEqualTo**, **greaterThan**, **lessThanOrEqualTo**, **lessThan**.", - "$ref" : "#/components/schemas/TotalAmountRestriction" - } - }, - "type" : "object" - }, - "TransactionRulesResponse" : { - "additionalProperties" : false, - "properties" : { - "transactionRules" : { - "description" : "List of transaction rules.", - "items" : { - "$ref" : "#/components/schemas/TransactionRule" + }, + "examples" : { + "createTransactionRuleAllowPos" : { + "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleAllowPos-200" }, - "type" : "array" - } - }, - "type" : "object" - }, - "TransferRoute" : { - "additionalProperties" : false, - "properties" : { - "category" : { - "description" : " The type of transfer.\n\n Possible values:\n\n - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account.\n", - "enum" : [ - "bank", - "card", - "grants", - "internal", - "issuedCard", - "migration", - "platformPayment", - "topUp", - "upgrade" - ], - "type" : "string" - }, - "country" : { - "description" : "The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**.", - "type" : "string" - }, - "currency" : { - "description" : "The three-character ISO currency code of transfer. For example, **USD** or **EUR**.", - "type" : "string" - }, - "priority" : { - "description" : "The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values:\n\n* **regular**: for normal, low-value transactions.\n\n* **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.\n\n* **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.\n\n* **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).\n\n* **crossBorder**: for high-value transfers to a recipient in a different country.\n\n* **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).", - "enum" : [ - "crossBorder", - "fast", - "instant", - "internal", - "regular", - "wire" - ], - "type" : "string" - }, - "requirements" : { - "description" : "A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`.", - "items" : { - "oneOf" : [ - { - "$ref" : "#/components/schemas/AddressRequirement" - }, - { - "$ref" : "#/components/schemas/AmountMinMaxRequirement" - }, - { - "$ref" : "#/components/schemas/AmountNonZeroDecimalsRequirement" - }, - { - "$ref" : "#/components/schemas/BankAccountIdentificationTypeRequirement" - }, - { - "$ref" : "#/components/schemas/IbanAccountIdentificationRequirement" - }, - { - "$ref" : "#/components/schemas/PaymentInstrumentRequirement" - }, - { - "$ref" : "#/components/schemas/USInternationalAchAddressRequirement" - } - ] + "createTransactionRuleIncreaseScore" : { + "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleIncreaseScore-200" }, - "type" : "array" - } - }, - "type" : "object" - }, - "TransferRouteRequest" : { - "additionalProperties" : false, - "properties" : { - "balanceAccountId" : { - "description" : "The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).\nRequired if `counterparty` is **transferInstrumentId**.", - "type" : "string" - }, - "balancePlatform" : { - "description" : "The unique identifier assigned to the balance platform associated with the account holder.", - "type" : "string" - }, - "category" : { - "description" : " The type of transfer. Possible values:\n\n - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account.\n", - "enum" : [ - "bank" - ], - "type" : "string" - }, - "counterparty" : { - "description" : "The recipient of the funds transfer. A bank account or a transfer instrument.", - "$ref" : "#/components/schemas/Counterparty" - }, - "country" : { - "description" : "The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**.\n > Either `counterparty` or `country` field must be provided in a transfer route request.", - "type" : "string" - }, - "currency" : { - "description" : "The three-character ISO currency code of transfer. For example, **USD** or **EUR**.", - "type" : "string" - }, - "priorities" : { - "description" : "The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided.\nPossible values:\n\n* **regular**: for normal, low-value transactions.\n\n* **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.\n\n* **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.\n\n* **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).\n\n* **crossBorder**: for high-value transfers to a recipient in a different country.\n\n* **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).", - "items" : { - "enum" : [ - "crossBorder", - "fast", - "instant", - "internal", - "regular", - "wire" - ], - "type" : "string" + "createTransactionRuleLimitSliding" : { + "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleLimitSliding-200" }, - "type" : "array" - } - }, - "required" : [ - "balancePlatform", - "currency", - "category" - ], - "type" : "object" - }, - "TransferRouteResponse" : { - "additionalProperties" : false, - "properties" : { - "transferRoutes" : { - "description" : "List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer.", - "items" : { - "$ref" : "#/components/schemas/TransferRoute" - }, - "type" : "array" - } - }, - "type" : "object" - }, - "UKLocalAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The 8-digit bank account number, without separators or whitespace.", - "maxLength" : 8, - "minLength" : 8, - "type" : "string" - }, - "sortCode" : { - "description" : "The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.", - "maxLength" : 6, - "minLength" : 6, - "type" : "string" - }, - "type" : { - "default" : "ukLocal", - "description" : "**ukLocal**", - "enum" : [ - "ukLocal" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "accountNumber", - "sortCode" - ], - "type" : "object" - }, - "USInternationalAchAddressRequirement" : { - "additionalProperties" : false, - "properties" : { - "description" : { - "description" : "Specifies that you must provide a complete street address for International ACH (IAT) transactions.", - "type" : "string" - }, - "type" : { - "default" : "usInternationalAchAddressRequirement", - "description" : "**usInternationalAchAddressRequirement**", - "enum" : [ - "usInternationalAchAddressRequirement" - ], - "type" : "string" - } - }, - "required" : [ - "type" - ], - "type" : "object" - }, - "USLocalAccountIdentification" : { - "additionalProperties" : false, - "properties" : { - "accountNumber" : { - "description" : "The bank account number, without separators or whitespace.", - "maxLength" : 18, - "minLength" : 2, - "type" : "string" - }, - "accountType" : { - "default" : "checking", - "description" : "The bank account type.\n\nPossible values: **checking** or **savings**. Defaults to **checking**.", - "enum" : [ - "checking", - "savings" - ], - "type" : "string" - }, - "routingNumber" : { - "description" : "The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.", - "maxLength" : 9, - "minLength" : 9, - "type" : "string" - }, - "type" : { - "default" : "usLocal", - "description" : "**usLocal**", - "enum" : [ - "usLocal" - ], - "type" : "string" - } - }, - "required" : [ - "type", - "accountNumber", - "routingNumber" - ], - "type" : "object" - }, - "UpdateNetworkTokenRequest" : { - "additionalProperties" : false, - "properties" : { - "status" : { - "description" : "The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed.", - "enum" : [ - "active", - "suspended", - "closed" - ], - "type" : "string" - } - }, - "type" : "object" - }, - "UpdatePaymentInstrument" : { - "additionalProperties" : false, - "properties" : { - "additionalBankAccountIdentifications" : { - "deprecated" : true, - "x-deprecatedInVersion" : "2", - "x-deprecatedMessage" : "Please use `bankAccount` object instead", - "description" : "Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**.", - "items" : { - "oneOf" : [ - { - "$ref" : "#/components/schemas/IbanAccountIdentification" - } - ] - }, - "type" : "array" - }, - "balanceAccountId" : { - "description" : "The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument.", - "type" : "string" - }, - "bankAccount" : { - "description" : "Contains the business account details. Returned when you create a payment instrument with `type` **bankAccount**.", - "$ref" : "#/components/schemas/BankAccountDetails" - }, - "card" : { - "description" : "Contains information about the card payment instrument. Returned when you create a payment instrument with `type` **card**.", - "$ref" : "#/components/schemas/Card" - }, - "description" : { - "description" : "Your description for the payment instrument, maximum 300 characters.", - "maxLength" : 300, - "type" : "string" - }, - "id" : { - "description" : "The unique identifier of the payment instrument.", - "type" : "string" - }, - "issuingCountryCode" : { - "description" : "The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**.", - "type" : "string" - }, - "paymentInstrumentGroupId" : { - "description" : "The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs.", - "type" : "string" - }, - "reference" : { - "description" : "Your reference for the payment instrument, maximum 150 characters.", - "maxLength" : 150, - "type" : "string" - }, - "status" : { - "description" : "The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**.\n\nPossible values: \n\n * **active**: The payment instrument is active and can be used to make payments. \n\n * **inactive**: The payment instrument is inactive and cannot be used to make payments. \n\n * **suspended**: The payment instrument is suspended, either because it was stolen or lost. \n\n * **closed**: The payment instrument is permanently closed. This action cannot be undone. \n\n", - "enum" : [ - "active", - "closed", - "inactive", - "suspended" - ], - "type" : "string" - }, - "statusComment" : { - "x-addedInVersion" : "2", - "description" : "Comment for the status of the payment instrument.\n\nRequired if `statusReason` is **other**.", - "type" : "string" - }, - "statusReason" : { - "x-addedInVersion" : "2", - "description" : "The reason for the status of the payment instrument.\n\nPossible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**.\nIf the reason is **other**, you must also send the `statusComment` parameter describing the status change.", - "enum" : [ - "accountClosure", - "damaged", - "endOfLife", - "expired", - "lost", - "other", - "stolen", - "suspectedFraud", - "transactionRule" - ], - "type" : "string" - }, - "type" : { - "description" : "The type of payment instrument.\n\nPossible values: **card**, **bankAccount**.", - "enum" : [ - "bankAccount", - "card" - ], - "type" : "string" - } - }, - "required" : [ - "balanceAccountId", - "issuingCountryCode", - "type", - "id" - ], - "type" : "object" - }, - "UpdateSweepConfigurationV2" : { - "additionalProperties" : false, - "properties" : { - "category" : { - "x-addedInVersion" : "2", - "description" : "The type of transfer that results from the sweep.\n\nPossible values:\n\n - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).\n\n- **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform.\n\nRequired when setting `priorities`.", - "enum" : [ - "bank", - "internal", - "platformPayment" - ], - "type" : "string" - }, - "counterparty" : { - "description" : "The destination or the source of the funds, depending on the sweep `type`.\n\nEither a `balanceAccountId`, `transferInstrumentId`, or `merchantAccount` is required.", - "$ref" : "#/components/schemas/SweepCounterparty" - }, - "currency" : { - "description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**.\n\nThe sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).", - "type" : "string" - }, - "description" : { - "description" : "The message that will be used in the sweep transfer's description body with a maximum length of 140 characters.\n\nIf the message is longer after replacing placeholders, the message will be cut off at 140 characters.", - "type" : "string" - }, - "id" : { - "description" : "The unique identifier of the sweep.", - "readOnly" : true, - "type" : "string" - }, - "priorities" : { - "x-addedInVersion" : "2", - "description" : "The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities.\n\nPossible values:\n\n* **regular**: for normal, low-value transactions.\n\n* **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.\n\n* **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.\n\n* **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).\n\n* **crossBorder**: for high-value transfers to a recipient in a different country.\n\n* **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).\n\nSet `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).", - "items" : { - "enum" : [ - "crossBorder", - "fast", - "instant", - "internal", - "regular", - "wire" - ], - "type" : "string" - }, - "type" : "array" - }, - "reason" : { - "description" : "The reason for disabling the sweep.", - "enum" : [ - "accountHierarchyNotActive", - "amountLimitExceeded", - "approved", - "balanceAccountTemporarilyBlockedByTransactionRule", - "counterpartyAccountBlocked", - "counterpartyAccountClosed", - "counterpartyAccountNotFound", - "counterpartyAddressRequired", - "counterpartyBankTimedOut", - "counterpartyBankUnavailable", - "declined", - "declinedByTransactionRule", - "directDebitNotSupported", - "error", - "notEnoughBalance", - "pendingApproval", - "pendingExecution", - "refusedByCounterpartyBank", - "refusedByCustomer", - "routeNotFound", - "scaFailed", - "transferInstrumentDoesNotExist", - "unknown" - ], - "readOnly" : true, - "type" : "string" - }, - "reasonDetail" : { - "description" : "The human readable reason for disabling the sweep.", - "readOnly" : true, - "type" : "string" - }, - "reference" : { - "description" : "Your reference for the sweep configuration.", - "maxLength" : 80, - "type" : "string" - }, - "referenceForBeneficiary" : { - "description" : "The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.", - "maxLength" : 80, - "type" : "string" - }, - "schedule" : { - "description" : "The schedule when the `triggerAmount` is evaluated. If the balance meets the threshold, funds are pushed out of or pulled in to the balance account.", - "$ref" : "#/components/schemas/SweepSchedule" - }, - "status" : { - "description" : "The status of the sweep. If not provided, by default, this is set to **active**.\n\nPossible values: \n\n * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. \n\n * **inactive**: the sweep is disabled and cannot be triggered. \n\n", - "enum" : [ - "active", - "inactive" - ], - "type" : "string" - }, - "sweepAmount" : { - "description" : "The amount that must be pushed out or pulled in. You can configure either `sweepAmount` or `targetAmount`, not both.", - "$ref" : "#/components/schemas/Amount" - }, - "targetAmount" : { - "description" : "The amount that must be available in the balance account after the sweep. You can configure either `sweepAmount` or `targetAmount`, not both.", - "$ref" : "#/components/schemas/Amount" - }, - "triggerAmount" : { - "description" : "The threshold amount that triggers the sweep. If not provided, by default, the amount is set to zero. The `triggerAmount` is evaluated according to the specified `schedule.type`.\n\n* For `type` **pull**, if the balance is less than or equal to the `triggerAmount`, funds are pulled in to the balance account.\n\n* For `type` **push**, if the balance is more than or equal to the `triggerAmount`, funds are pushed out of the balance account.", - "$ref" : "#/components/schemas/Amount" - }, - "type" : { - "default" : "push", - "description" : "The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**.\n\nPossible values:\n\n * **push**: _push out funds_ to a destination balance account or transfer instrument.\n\n * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.", - "enum" : [ - "pull", - "push" - ], - "type" : "string" - } - }, - "type" : "object" - }, - "VerificationDeadline" : { - "additionalProperties" : false, - "properties" : { - "capabilities" : { - "description" : "The names of the capabilities to be disallowed.", - "items" : { - "enum" : [ - "acceptExternalFunding", - "acceptPspFunding", - "acceptTransactionInRestrictedCountries", - "acceptTransactionInRestrictedCountriesCommercial", - "acceptTransactionInRestrictedCountriesConsumer", - "acceptTransactionInRestrictedIndustries", - "acceptTransactionInRestrictedIndustriesCommercial", - "acceptTransactionInRestrictedIndustriesConsumer", - "acquiring", - "atmWithdrawal", - "atmWithdrawalCommercial", - "atmWithdrawalConsumer", - "atmWithdrawalInRestrictedCountries", - "atmWithdrawalInRestrictedCountriesCommercial", - "atmWithdrawalInRestrictedCountriesConsumer", - "authorisedPaymentInstrumentUser", - "getGrantOffers", - "issueBankAccount", - "issueCard", - "issueCardCommercial", - "issueCardConsumer", - "issueChargeCard", - "issueChargeCardCommercial", - "issueCreditLimit", - "localAcceptance", - "payout", - "payoutToTransferInstrument", - "processing", - "receiveFromBalanceAccount", - "receiveFromPlatformPayments", - "receiveFromThirdParty", - "receiveFromTransferInstrument", - "receiveGrants", - "receivePayments", - "sendToBalanceAccount", - "sendToThirdParty", - "sendToTransferInstrument", - "thirdPartyFunding", - "useCard", - "useCardCommercial", - "useCardConsumer", - "useCardInRestrictedCountries", - "useCardInRestrictedCountriesCommercial", - "useCardInRestrictedCountriesConsumer", - "useCardInRestrictedIndustries", - "useCardInRestrictedIndustriesCommercial", - "useCardInRestrictedIndustriesConsumer", - "useChargeCard", - "useChargeCardCommercial", - "withdrawFromAtm", - "withdrawFromAtmCommercial", - "withdrawFromAtmConsumer", - "withdrawFromAtmInRestrictedCountries", - "withdrawFromAtmInRestrictedCountriesCommercial", - "withdrawFromAtmInRestrictedCountriesConsumer" - ], - "type" : "string" - }, - "readOnly" : true, - "type" : "array" - }, - "entityIds" : { - "description" : "The unique identifiers of the bank account(s) that the deadline applies to", - "items" : { - "type" : "string" - }, - "readOnly" : true, - "type" : "array" - }, - "expiresAt" : { - "description" : "The date that verification is due by before capabilities are disallowed.", - "format" : "date-time", - "readOnly" : true, - "type" : "string" - } - }, - "required" : [ - "expiresAt", - "capabilities" - ], - "type" : "object" - }, - "VerificationError" : { - "additionalProperties" : false, - "properties" : { - "capabilities" : { - "description" : "Contains the capabilities that the verification error applies to.", - "items" : { - "enum" : [ - "acceptExternalFunding", - "acceptPspFunding", - "acceptTransactionInRestrictedCountries", - "acceptTransactionInRestrictedCountriesCommercial", - "acceptTransactionInRestrictedCountriesConsumer", - "acceptTransactionInRestrictedIndustries", - "acceptTransactionInRestrictedIndustriesCommercial", - "acceptTransactionInRestrictedIndustriesConsumer", - "acquiring", - "atmWithdrawal", - "atmWithdrawalCommercial", - "atmWithdrawalConsumer", - "atmWithdrawalInRestrictedCountries", - "atmWithdrawalInRestrictedCountriesCommercial", - "atmWithdrawalInRestrictedCountriesConsumer", - "authorisedPaymentInstrumentUser", - "getGrantOffers", - "issueBankAccount", - "issueCard", - "issueCardCommercial", - "issueCardConsumer", - "issueChargeCard", - "issueChargeCardCommercial", - "issueCreditLimit", - "localAcceptance", - "payout", - "payoutToTransferInstrument", - "processing", - "receiveFromBalanceAccount", - "receiveFromPlatformPayments", - "receiveFromThirdParty", - "receiveFromTransferInstrument", - "receiveGrants", - "receivePayments", - "sendToBalanceAccount", - "sendToThirdParty", - "sendToTransferInstrument", - "thirdPartyFunding", - "useCard", - "useCardCommercial", - "useCardConsumer", - "useCardInRestrictedCountries", - "useCardInRestrictedCountriesCommercial", - "useCardInRestrictedCountriesConsumer", - "useCardInRestrictedIndustries", - "useCardInRestrictedIndustriesCommercial", - "useCardInRestrictedIndustriesConsumer", - "useChargeCard", - "useChargeCardCommercial", - "withdrawFromAtm", - "withdrawFromAtmCommercial", - "withdrawFromAtmConsumer", - "withdrawFromAtmInRestrictedCountries", - "withdrawFromAtmInRestrictedCountriesCommercial", - "withdrawFromAtmInRestrictedCountriesConsumer" - ], - "type" : "string" - }, - "type" : "array" - }, - "code" : { - "description" : "The verification error code.", - "type" : "string" - }, - "message" : { - "description" : "A description of the error.", - "type" : "string" - }, - "remediatingActions" : { - "description" : "Contains the actions that you can take to resolve the verification error.", - "items" : { - "$ref" : "#/components/schemas/RemediatingAction" - }, - "type" : "array" - }, - "subErrors" : { - "description" : "Contains more granular information about the verification error.", - "items" : { - "$ref" : "#/components/schemas/VerificationError-recursive" - }, - "type" : "array" - }, - "type" : { - "description" : "The type of error.\n\n Possible values: **invalidInput**, **dataMissing**.", - "enum" : [ - "dataMissing", - "invalidInput", - "pendingStatus" - ], - "type" : "string" - } - }, - "type" : "object" - }, - "VerificationError-recursive" : { - "additionalProperties" : false, - "properties" : { - "capabilities" : { - "description" : "Contains the capabilities that the verification error applies to.", - "items" : { - "enum" : [ - "acceptExternalFunding", - "acceptPspFunding", - "acceptTransactionInRestrictedCountries", - "acceptTransactionInRestrictedCountriesCommercial", - "acceptTransactionInRestrictedCountriesConsumer", - "acceptTransactionInRestrictedIndustries", - "acceptTransactionInRestrictedIndustriesCommercial", - "acceptTransactionInRestrictedIndustriesConsumer", - "acquiring", - "atmWithdrawal", - "atmWithdrawalCommercial", - "atmWithdrawalConsumer", - "atmWithdrawalInRestrictedCountries", - "atmWithdrawalInRestrictedCountriesCommercial", - "atmWithdrawalInRestrictedCountriesConsumer", - "authorisedPaymentInstrumentUser", - "getGrantOffers", - "issueBankAccount", - "issueCard", - "issueCardCommercial", - "issueCardConsumer", - "issueChargeCard", - "issueChargeCardCommercial", - "issueCreditLimit", - "localAcceptance", - "payout", - "payoutToTransferInstrument", - "processing", - "receiveFromBalanceAccount", - "receiveFromPlatformPayments", - "receiveFromThirdParty", - "receiveFromTransferInstrument", - "receiveGrants", - "receivePayments", - "sendToBalanceAccount", - "sendToThirdParty", - "sendToTransferInstrument", - "thirdPartyFunding", - "useCard", - "useCardCommercial", - "useCardConsumer", - "useCardInRestrictedCountries", - "useCardInRestrictedCountriesCommercial", - "useCardInRestrictedCountriesConsumer", - "useCardInRestrictedIndustries", - "useCardInRestrictedIndustriesCommercial", - "useCardInRestrictedIndustriesConsumer", - "useChargeCard", - "useChargeCardCommercial", - "withdrawFromAtm", - "withdrawFromAtmCommercial", - "withdrawFromAtmConsumer", - "withdrawFromAtmInRestrictedCountries", - "withdrawFromAtmInRestrictedCountriesCommercial", - "withdrawFromAtmInRestrictedCountriesConsumer" - ], - "type" : "string" - }, - "type" : "array" - }, - "code" : { - "description" : "The verification error code.", - "type" : "string" - }, - "message" : { - "description" : "A description of the error.", - "type" : "string" - }, - "type" : { - "description" : "The type of error.\n\n Possible values: **invalidInput**, **dataMissing**.", - "enum" : [ - "dataMissing", - "invalidInput", - "pendingStatus" - ], - "type" : "string" - }, - "remediatingActions" : { - "description" : "Contains the actions that you can take to resolve the verification error.", - "items" : { - "$ref" : "#/components/schemas/RemediatingAction" - }, - "type" : "array" - } - }, - "required" : [ - ], - "type" : "object" - } - }, - "securitySchemes" : { - "ApiKeyAuth" : { - "in" : "header", - "name" : "X-API-Key", - "type" : "apiKey" - }, - "BasicAuth" : { - "scheme" : "basic", - "type" : "http" - }, - "clientKey" : { - "in" : "query", - "name" : "clientKey", - "type" : "apiKey" - } - }, - "examples" : { - "delete-transactionRules-transactionRuleId-success-200" : { - "summary" : "Transaction rule deleted", - "description" : "Example response for successfully deleting a transaction rule", - "value" : { - "aggregationLevel" : "paymentInstrument", - "description" : "Up to 1000 EUR per card for the last 12 hours", - "entityKey" : { - "entityReference" : "PG3227C223222C5GXR3M5592Q", - "entityType" : "paymentInstrumentGroup" - }, - "interval" : { - "duration" : { - "unit" : "hours", - "value" : 12 - }, - "timeZone" : "UTC", - "type" : "sliding" - }, - "outcomeType" : "hardBlock", - "reference" : "myRule12345", - "requestType" : "authorization", - "ruleRestrictions" : { - "totalAmount" : { - "operation" : "greaterThan", - "value" : { - "currency" : "EUR", - "value" : 100000 - } + "createTransactionRuleLimitTransaction" : { + "$ref" : "#/components/examples/post-transactionRules-createTransactionRuleLimitTransaction-200" } - }, - "type" : "velocity", - "id" : "TR3227C223222C5GXT3DD5VCF" + } + } } - }, - "generic-400" : { - "summary" : "Response code - 400 Bad request", - "value" : { - "type" : "https://docs.adyen.com/errors/general/bad-request", - "title" : "Bad request", - "status" : 400, - "detail" : "Empty input which would have resulted in a null result.", - "errorCode" : "00_400" - } - }, - "generic-401" : { - "summary" : "Response code - 401 Unauthorized", - "value" : { - "type" : "https://docs.adyen.com/errors/security/unauthorized", - "title" : "Unauthorized", - "status" : 401, - "detail" : "Not authorized to access this service.", - "errorCode" : "00_401" - } - }, - "generic-403" : { - "summary" : "Response code - 403 Forbidden.", - "value" : { - "type" : "https://docs.adyen.com/errors/security/unauthorized", - "title" : "Forbidden", - "status" : 403, - "detail" : "Not the right permission to access this service.", - "errorCode" : "00_403" - } - }, - "generic-404" : { - "summary" : "Response code 404 - Not found", - "value" : { - "type" : "https://docs.adyen.com/errors/general/not-found", - "title" : "Not found", - "status" : 404, - "detail" : "Service not found.", - "errorCode" : "00_404" - } - }, - "generic-422" : { - "summary" : "Response code - 422 Unprocessable Entity.", - "value" : { - "type" : "https://docs.adyen.com/errors/general/invalid-field-value", - "title" : "Invalid Payment Instrument information provided", - "status" : 422, - "detail" : "The balanceAccountId can only be changed when the status is Inactive or Requested", - "requestId" : "1W1UI15PLVGC9V8O", - "errorCode" : "30_031" - } - }, - "generic-500" : { - "summary" : "Response code - 500 Internal Server Error", - "value" : { - "type" : "https://docs.adyen.com/errors/general/internal", - "title" : "An internal error happened", - "status" : 500, - "detail" : "Unrecoverable error while trying to create payment instrument", - "requestId" : "1WAF555PLWNTLYOQ", - "errorCode" : "00_500" - } - }, - "generic-503" : { - "summary" : "Response code - 503 Internal Server Error", - "value" : { - "type" : "https://docs.adyen.com/errors/general/processing-error", - "title" : "Error processing request", - "status" : 500, - "detail" : "Error while determining the payment instrument workflow", - "requestId" : "1W1UHY5O2CONU4R7", - "errorCode" : "99_500" - } - }, - "get-accountHolders-id-balanceAccounts-success-200" : { - "summary" : "List of balance accounts retrieved", - "description" : "Example response when retrieving a list of balance accounts under an account holder", - "value" : { - "balanceAccounts" : [ - { - "accountHolderId" : "AH32272223222B5CTBMZT6W2V", - "defaultCurrencyCode" : "EUR", - "description" : "S. Hopper - Main Account", - "reference" : "YOUR_REFERENCE-X173L", - "timeZone" : "Europe/Amsterdam", - "id" : "BA32272223222B5CTDNB66W2Z", - "status" : "active" - }, - { - "accountHolderId" : "AH32272223222B5CTBMZT6W2V", - "defaultCurrencyCode" : "EUR", - "description" : "S. Hopper - Main Account", - "reference" : "YOUR_REFERENCE-X173L", - "timeZone" : "Europe/Amsterdam", - "id" : "BA32272223222B5CTDQPM6W2H", - "status" : "active" - }, - { - "accountHolderId" : "AH32272223222B5CTBMZT6W2V", - "defaultCurrencyCode" : "EUR", - "description" : "S. Hopper - Main Account", - "reference" : "YOUR_REFERENCE-X173L", - "timeZone" : "Europe/Amsterdam", - "id" : "BA32272223222B5CVF5J63LMW", - "status" : "active" + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" } - ], - "hasNext" : true, - "hasPrevious" : false + } + } } - }, - "get-accountHolders-id-success-200" : { - "summary" : "Account holder retrieved", - "description" : "Example response when retrieving an account holder", - "value" : { - "balancePlatform" : "YOUR_BALANCE_PLATFORM", - "description" : "Liable account holder used for international payments and payouts", - "legalEntityId" : "LE322JV223222D5GG42KN6869", - "reference" : "S.Eller-001", - "capabilities" : { - "receiveFromPlatformPayments" : { - "enabled" : true, - "requested" : true, - "allowed" : false, - "verificationStatus" : "pending" - }, - "receiveFromBalanceAccount" : { - "enabled" : true, - "requested" : true, - "allowed" : false, - "verificationStatus" : "pending" - }, - "sendToBalanceAccount" : { - "enabled" : true, - "requested" : true, - "allowed" : false, - "verificationStatus" : "pending" - }, - "sendToTransferInstrument" : { - "enabled" : true, - "requested" : true, - "allowed" : false, - "transferInstruments" : [ - { - "enabled" : true, - "requested" : true, - "allowed" : false, - "id" : "SE322KH223222F5GXZFNM3BGP", - "verificationStatus" : "pending" - } - ], - "verificationStatus" : "pending" + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" } - }, - "id" : "AH3227C223222C5GXQXF658WB", - "status" : "active" + } + } } - }, - "get-accountHolders-id-taxForms-success-200" : { - "summary" : "Tax form retrieved for an account holder", - "description" : "Example response when retrieving a tax form for an account holder", - "value" : { - "content" : "JVBERi0xLjcKJcfsj6IKJSVJbnZvY2F0aW9uOiBwYXRoL2dzd2luNjQuZXhlIC1kRGlzcGxh", - "contentType" : "application/pdf" - } - }, - "get-balanceAccounts-balanceAccountId-sweeps-success-200" : { - "summary" : "Sweeps under a balance account retrieved", - "description" : "Example response when retrieving sweeps under a balance account", - "value" : { - "hasNext" : false, - "hasPrevious" : false, - "sweeps" : [ - { - "id" : "SWPC4227C224555B5FTD2NT2JV4WN5", - "schedule" : { - "type" : "daily" - }, - "status" : "active", - "targetAmount" : { - "currency" : "EUR", - "value" : 0 - }, - "triggerAmount" : { - "currency" : "EUR", - "value" : 0 - }, - "type" : "push", - "counterparty" : { - "balanceAccountId" : "BA32272223222B5FTD2KR6TJD" - }, - "currency" : "EUR" + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" } - ] + } + } } - }, - "get-balanceAccounts-balanceAccountId-sweeps-sweepId-success-200" : { - "summary" : "Sweep retrieved", - "description" : "Example response when retrieving a sweep", - "value" : { - "id" : "SWPC4227C224555B5FTD2NT2JV4WN5", - "schedule" : { - "type" : "daily" - }, - "status" : "active", - "targetAmount" : { - "currency" : "EUR", - "value" : 0 - }, - "triggerAmount" : { - "currency" : "EUR", - "value" : 0 - }, - "type" : "push", - "counterparty" : { - "balanceAccountId" : "BA32272223222B5FTD2KR6TJD" - }, - "currency" : "EUR" - } - }, - "get-balanceAccounts-id-paymentInstruments-success-200" : { - "summary" : "List of payment instruments retrieved", - "description" : "Example response when retrieving a list of payment instruments under a balance account", - "value" : { - "hasNext" : true, - "hasPrevious" : false, - "paymentInstruments" : [ - { - "balanceAccountId" : "BA32272223222B59CZ3T52DKZ", - "issuingCountryCode" : "GB", - "status" : "active", - "type" : "card", - "card" : { - "brand" : "mc", - "brandVariant" : "mc", - "cardholderName" : "name", - "formFactor" : "virtual", - "bin" : "555544", - "expiration" : { - "month" : "12", - "year" : "2022" - }, - "lastFour" : "2357", - "number" : "************2357" - }, - "id" : "PI32272223222B59M5TM658DT" - }, - { - "balanceAccountId" : "BA32272223222B59CZ3T52DKZ", - "issuingCountryCode" : "GB", - "status" : "active", - "type" : "card", - "card" : { - "brand" : "mc", - "brandVariant" : "mc", - "cardholderName" : "name", - "formFactor" : "virtual", - "bin" : "555544", - "expiration" : { - "month" : "01", - "year" : "2023" - }, - "lastFour" : "8331", - "number" : "************8331" - }, - "id" : "PI32272223222B59PXDGQDLSF" + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" } - ] + } + } } - }, - "get-balanceAccounts-id-success-200" : { - "summary" : "Balance account details retrieved", - "description" : "Example response for retrieving a balance account", - "value" : { - "accountHolderId" : "AH32272223222B59K6RTQBFNZ", - "defaultCurrencyCode" : "EUR", - "timeZone" : "Europe/Amsterdam", - "balances" : [ - { - "available" : 0, - "balance" : 0, - "currency" : "EUR", - "reserved" : 0, - "pending" : 0 + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" } - ], - "id" : "BA3227C223222B5BLP6JQC3FD", - "status" : "active" - } - }, - "get-balancePlatforms-id-accountHolders-success-200" : { - "summary" : "List of account holders retrieved", - "description" : "Example response when retrieving a list of account holders under a balance platform", - "value" : { - "accountHolders" : [ - { - "description" : "Test-305", - "legalEntityId" : "LE3227C223222D5D8S5S33M4M", - "reference" : "LegalEntity internal error test", - "id" : "AH32272223222B5GFSNSXFFL9", - "status" : "active" - }, - { - "description" : "Test-751", - "legalEntityId" : "LE3227C223222D5D8S5TT3SRX", - "reference" : "LegalEntity internal error test", - "id" : "AH32272223222B5GFSNVGFFM7", - "status" : "active" - }, - { - "description" : "Explorer Holder", - "legalEntityId" : "LE3227C223222D5D8S5TT3SRX", - "reference" : "Account from the Explorer Holder", - "id" : "AH32272223222B5GFWNRFFVR6", - "status" : "active" - } - ], - "hasNext" : true, - "hasPrevious" : true - } - }, - "get-balancePlatforms-id-success-200" : { - "summary" : "Balance platform retrieved", - "description" : "Example response when retrieving a balance platform", - "value" : { - "id" : "YOUR_BALANCE_PLATFORM", - "status" : "Active" - } - }, - "get-cardorders-id-items-success-200" : { - "summary" : "Item list of a specific card order retrieved", - "description" : "Example response for retrieving the item list of a specific card order", - "value" : { - "data" : [ - { - "card" : { - "status" : "shipped" - }, - "cardOrderItemId" : "UNIQUE_CARD_ORDER_ITEM_ID", - "paymentInstrumentId" : "UNIQUE_PAYMENT_INSTRUMENT_ID", - "pin" : { - "status" : "produced" - }, - "shippingMethod" : "Cardholder Post Basic National" - } - ], - "hasNext" : false, - "hasPrevious" : false - } - }, - "get-cardorders-success-200" : { - "summary" : "List of card orders retrieved", - "description" : "Example response for retrieving a paginated list of card orders", - "value" : { - "cardOrders" : [ - { - "beginDate" : "2022-12-05T00:00:00+01:00", - "cardManufacturingProfileId" : "UNIQUE_CARD_MANUFACTURER_PROFILE_ID", - "endDate" : "2022-12-06T00:00:00+01:00", - "id" : "UNIQUE_CARD_ORDER_ID", - "lockDate" : "2023-04-14T16:43:02+02:00", - "serviceCenter" : "IDEMIA Sittard", - "status" : "closed" - } - ], - "hasNext" : true, - "hasPrevious" : false - } - }, - "get-paymentInstrumentGroups-id-success-200" : { - "summary" : "Payment instrument group retrieved", - "description" : "Example response when retrieving a payment instrument group", - "value" : { - "balancePlatform" : "YOUR_BALANCE_PLATFORM", - "txVariant" : "mc", - "id" : "PG3227C223222B5CMD3FJFKGZ" - } - }, - "get-paymentInstrumentGroups-id-transactionRules-success-200" : { - "summary" : "Transaction rules for a payment instrument group retrieved", - "description" : "Example response when retrieving a list of transaction rules applied to a payment instrument group", - "value" : { - "transactionRules" : [ - { - "aggregationLevel" : "paymentInstrument", - "description" : "Up to 1000 EUR per card for the last 12 hours", - "entityKey" : { - "entityReference" : "PG3227C223222C5GXR3M5592Q", - "entityType" : "paymentInstrumentGroup" - }, - "interval" : { - "duration" : { - "unit" : "hours", - "value" : 12 - }, - "timeZone" : "UTC", - "type" : "sliding" - }, - "outcomeType" : "hardBlock", - "reference" : "YOUR_REFERENCE_2918A", - "requestType" : "authorization", - "ruleRestrictions" : { - "totalAmount" : { - "operation" : "greaterThan", - "value" : { - "currency" : "EUR", - "value" : 100000 - } - } - }, - "status" : "inactive", - "type" : "velocity", - "id" : "TR3227C223222C5GXR3XP596N" - }, - { - "aggregationLevel" : "paymentInstrument", - "description" : "NL only", - "entityKey" : { - "entityReference" : "PG3227C223222C5GXR3M5592Q", - "entityType" : "paymentInstrumentGroup" - }, - "interval" : { - "duration" : { - "unit" : "hours", - "value" : 12 - }, - "timeZone" : "UTC", - "type" : "sliding" - }, - "outcomeType" : "hardBlock", - "reference" : "myRule12345", - "requestType" : "authorization", - "ruleRestrictions" : { - "totalAmount" : { - "operation" : "greaterThan", - "value" : { - "currency" : "EUR", - "value" : 100000 - } - } - }, - "status" : "inactive", - "type" : "velocity", - "id" : "TR3227C223222C5GXR3WC595H" - } - ] - } - }, - "get-paymentInstruments-id-reveal-success-200" : { - "summary" : "Get the card's primary account number (PAN)", - "description" : "Example response for getting the card PAN", - "value" : { - "cvc" : "123", - "expiration" : { - "month" : "02", - "year" : "2026" - }, - "pan" : "5555444411209883" - } - }, - "get-paymentInstruments-id-success-200" : { - "summary" : "Payment instruments retrieved", - "description" : "Example response for retrieving payment instruments associated with a balance account", - "value" : { - "balanceAccountId" : "BA32272223222B59CZ3T52DKZ", - "description" : "S. Hopper - Main card", - "issuingCountryCode" : "GB", - "status" : "active", - "type" : "card", - "card" : { - "brand" : "mc", - "brandVariant" : "mcdebit", - "cardholderName" : "Simon Hopper", - "formFactor" : "virtual", - "bin" : "555544", - "expiration" : { - "month" : "01", - "year" : "2024" - }, - "lastFour" : "3548", - "number" : "************3548" - }, - "id" : "PI32272223222B5CMD3MQ3HXX" - } - }, - "get-paymentInstruments-id-transactionRules-success-200" : { - "summary" : "Transaction rules for a payment instrument retrieved", - "description" : "Example response when retrieving a list of transaction rules applied to a payment instrument", - "value" : { - "transactionRules" : [ - { - "description" : "Only allow point-of-sale transactions", - "entityKey" : { - "entityReference" : "PI3227C223222B5FN65FN5NS9", - "entityType" : "paymentInstrument" - }, - "interval" : { - "timeZone" : "UTC", - "type" : "perTransaction" - }, - "outcomeType" : "hardBlock", - "reference" : "YOUR_REFERENCE_4F7346", - "requestType" : "authorization", - "ruleRestrictions" : { - "processingTypes" : { - "operation" : "noneMatch", - "value" : [ - "pos" - ] - } - }, - "startDate" : "2022-08-02T16:07:00.851374+02:00", - "status" : "active", - "type" : "blockList", - "id" : "TR32272223222B5GFSGFLFCHM" - }, - { - "description" : "Set the maximum number of active network tokens to one for this card", - "entityKey" : { - "entityReference" : "PI3227C223222B5FN65FN5NS9", - "entityType" : "paymentInstrument" - }, - "interval" : { - "timeZone" : "UTC", - "type" : "perTransaction" - }, - "outcomeType" : "hardBlock", - "reference" : "myRule123", - "requestType" : "authorization", - "ruleRestrictions" : { - "activeNetworkTokens" : { - "operation" : "greaterThanOrEqualTo", - "value" : 1 - } - }, - "startDate" : "2022-10-03T14:48:28.999314+02:00", - "status" : "active", - "type" : "blockList", - "id" : "TR32272223222C5GQJ93L7J8Z" - } - ] - } - }, - "get-publicKey-success-200" : { - "summary" : "Response with public key", - "value" : { - "publicKey" : "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMII...", - "publicKeyExpiryDate" : "2023-12-12" - } - }, - "get-transactionRules-transactionRuleId-success-200" : { - "summary" : "Transaction rules retrieved", - "description" : "Example response when retrieving a transaction rule", - "value" : { - "transactionRule" : { - "description" : "Only allow point-of-sale transactions", - "entityKey" : { - "entityReference" : "PI3227C223222B5FN65FN5NS9", - "entityType" : "paymentInstrument" - }, - "interval" : { - "timeZone" : "UTC", - "type" : "perTransaction" - }, - "outcomeType" : "hardBlock", - "reference" : "YOUR_REFERENCE_4F7346", - "requestType" : "authorization", - "ruleRestrictions" : { - "processingTypes" : { - "operation" : "noneMatch", - "value" : [ - "pos" - ] - } - }, - "startDate" : "2022-08-02T16:07:00.851374+02:00", - "status" : "active", - "type" : "blockList", - "id" : "TR32272223222B5GFSGFLFCHM" - } - } - }, - "patch-accountHolders-id-requestAccountHolderCapability" : { - "summary" : "Request account holder capability", - "description" : "Example request for the `receivePayments` capability for an account holder", - "value" : { - "description" : "Liable account holder used for international payments and payouts", - "reference" : "S.Eller-001", - "capabilities" : { - "receivePayments" : { - "requested" : true - } - } - } - }, - "patch-accountHolders-id-requestAccountHolderCapability-200" : { - "summary" : "Account holder capability requested", - "description" : "Example response for requesting the `receivePayments` capability for an account holder", - "value" : { - "balancePlatform" : "YOUR_BALANCE_PLATFORM", - "description" : "Liable account holder used for international payments and payouts", - "legalEntityId" : "LE322JV223222F5GKQZZ9DS99", - "reference" : "S.Eller-001", - "capabilities" : { - "receivePayments" : { - "enabled" : false, - "requested" : true, - "allowed" : false, - "verificationStatus" : "pending" - } - }, - "id" : "AH3227C223222C5GKR23686TF", - "status" : "active" - } - }, - "patch-accountHolders-id-updateAccountHolderStatus" : { - "summary" : "Deactivate an account holder", - "description" : "Example request for permanently deactivating an account holder", - "value" : { - "status" : "closed" - } - }, - "patch-accountHolders-id-updateAccountHolderStatus-200" : { - "summary" : "Account holder deactivated", - "description" : "Example response for permanently deactivating an account holder", - "value" : { - "balancePlatform" : "YOUR_BALANCE_PLATFORM", - "description" : "Liable account holder used for international payments and payouts", - "legalEntityId" : "LE322JV223222F5GKQZZ9DS99", - "reference" : "S.Eller-001", - "id" : "AH3227C223222C5GKR23686TF", - "status" : "closed" - } - }, - "patch-balanceAccounts-balanceAccountId-sweeps-sweepId-updateSweep-status" : { - "summary" : "Update the status of a sweep", - "description" : "Example request for updating a sweep", - "value" : { - "status" : "inactive" - } - }, - "patch-balanceAccounts-balanceAccountId-sweeps-sweepId-updateSweep-status-200" : { - "summary" : "Sweep status updated", - "description" : "Example response for updating a sweep", - "value" : { - "id" : "SWPC4227C224555B5FTD2NT2JV4WN5", - "counterparty" : { - "merchantAccount" : "YOUR_MERCHANT_ACCOUNT" - }, - "triggerAmount" : { - "currency" : "EUR", - "value" : 50000 - }, - "currency" : "EUR", - "schedule" : { - "type" : "balance" - }, - "type" : "pull", - "status" : "inactive" - } - }, - "patch-balanceAccounts-id-updateBalanceAccount" : { - "summary" : "Update the time zone of a balance account", - "description" : "Example request for updating a balance account", - "value" : { - "timeZone" : "Europe/Amsterdam" - } - }, - "patch-balanceAccounts-id-updateBalanceAccount-200" : { - "summary" : "Time zone of a balance account updated", - "description" : "Example response for updating a balance account", - "value" : { - "accountHolderId" : "AH32272223222B5GFSNVGFFM7", - "defaultCurrencyCode" : "EUR", - "timeZone" : "Europe/Amsterdam", - "balances" : [ - { - "available" : 0, - "balance" : 0, - "currency" : "EUR", - "reserved" : 0 - } - ], - "id" : "BA32272223222B59K6ZXHBFN6", - "status" : "active" - } - }, - "patch-paymentInstruments-id-updatePaymentInstrumentBalanceAccount" : { - "summary" : "Update the balance account linked to a payment instrument", - "description" : "Example request for updating the balance account of a payment instrument", - "value" : { - "balanceAccountId" : "BA32272223222B5CM82WL892M" - } - }, - "patch-paymentInstruments-id-updatePaymentInstrumentBalanceAccount-200" : { - "summary" : "Balance account updated", - "description" : "Example response for updating the balance account linked to a payment instrument", - "value" : { - "balanceAccountId" : "BA32272223222B5CM82WL892M", - "description" : "S. Hopper - Main card", - "issuingCountryCode" : "GB", - "status" : "inactive", - "type" : "card", - "card" : { - "brand" : "mc", - "brandVariant" : "mcdebit", - "cardholderName" : "Simon Hopper", - "formFactor" : "virtual", - "bin" : "555544", - "expiration" : { - "month" : "01", - "year" : "2024" - }, - "lastFour" : "5785", - "number" : "************5785" - }, - "id" : "PI3227C223222B5CMD278FKGS" - } - }, - "patch-paymentInstruments-id-updatePaymentInstrumentStatus" : { - "summary" : "Update the status of a payment instrument", - "description" : "Example request for updating the status of a payment instrument", - "value" : { - "status" : "suspended" - } - }, - "patch-paymentInstruments-id-updatePaymentInstrumentStatus-200" : { - "summary" : "Payment instrument status updated", - "description" : "Example response for updating the status of a payment instrument", - "value" : { - "balanceAccountId" : "BA32272223222B59CZ3T52DKZ", - "description" : "S. Hopper - Main card", - "issuingCountryCode" : "GB", - "status" : "suspended", - "type" : "card", - "card" : { - "brand" : "mc", - "brandVariant" : "mcdebit", - "cardholderName" : "Simon Hopper", - "formFactor" : "virtual", - "bin" : "555544", - "expiration" : { - "month" : "01", - "year" : "2024" - }, - "lastFour" : "5785", - "number" : "************5785" - }, - "id" : "PI3227C223222B5CMD278FKGS" - } - }, - "patch-transactionRules-transactionRuleId-updateTransactionRuleStatus" : { - "summary" : "Update the interval of transaction rule", - "description" : "Example request for updating the interval of a transaction rule", - "value" : { - "description" : "Allow only point-of-sale transactions", - "reference" : "YOUR_REFERENCE_4F7346", - "entityKey" : { - "entityType" : "paymentInstrument", - "entityReference" : "PI3227C223222B5FG88SB8BHR" - }, - "status" : "inactive", - "interval" : { - "type" : "weekly" - }, - "ruleRestrictions" : { - "processingTypes" : { - "operation" : "noneMatch", - "value" : [ - "pos" - ] - } - }, - "type" : "blockList" - } - }, - "patch-transactionRules-transactionRuleId-updateTransactionRuleStatus-200" : { - "summary" : "Transaction rule status updated", - "description" : "Example response for successfully updating the status of a transaction rule", - "value" : { - "aggregationLevel" : "paymentInstrument", - "description" : "Up to 1000 EUR per card for the last 12 hours", - "entityKey" : { - "entityReference" : "PG3227C223222C5GXR3M5592Q", - "entityType" : "paymentInstrumentGroup" - }, - "interval" : { - "duration" : { - "unit" : "hours", - "value" : 12 - }, - "timeZone" : "UTC", - "type" : "sliding" - }, - "outcomeType" : "hardBlock", - "reference" : "YOUR_REFERENCE_2918A", - "requestType" : "authorization", - "ruleRestrictions" : { - "totalAmount" : { - "operation" : "greaterThan", - "value" : { - "currency" : "EUR", - "value" : 100000 - } - } - }, - "startDate" : "2022-11-17T00:07:09.10057663+01:00", - "status" : "inactive", - "type" : "velocity", - "id" : "TR3227C223222C5GXR3XP596N" - } - }, - "post-accountHolders-createAccountHolder" : { - "summary" : "Create an account holder", - "description" : "Example request for creating an account holder", - "value" : { - "description" : "Liable account holder used for international payments and payouts", - "reference" : "S.Eller-001", - "legalEntityId" : "LE322JV223222D5GG42KN6869" - } - }, - "post-accountHolders-createAccountHolder-200" : { - "summary" : "Response for creating an account holder", - "description" : "Example response for creating an account holder", - "value" : { - "balancePlatform" : "YOUR_BALANCE_PLATFORM", - "description" : "Liable account holder used for international payments and payouts", - "legalEntityId" : "LE322JV223222D5GG42KN6869", - "reference" : "S.Eller-001", - "capabilities" : { - "receiveFromPlatformPayments" : { - "enabled" : true, - "requested" : true, - "allowed" : false, - "verificationStatus" : "pending" - }, - "receiveFromBalanceAccount" : { - "enabled" : true, - "requested" : true, - "allowed" : false, - "verificationStatus" : "pending" - }, - "sendToBalanceAccount" : { - "enabled" : true, - "requested" : true, - "allowed" : false, - "verificationStatus" : "pending" - }, - "sendToTransferInstrument" : { - "enabled" : true, - "requested" : true, - "allowed" : false, - "requestedSettings" : { - "interval" : "daily", - "maxAmount" : { - "currency" : "EUR", - "value" : 0 - } - }, - "verificationStatus" : "pending" - } - }, - "id" : "AH3227C223222H5J4DCLW9VBV", - "status" : "active" - } - }, - "post-balanceAccounts-balanceAccountId-sweeps-createSweep-pull" : { - "summary" : "Create a sweep to pull funds in to a balance account", - "description" : "Example request for creating a pull sweep", - "value" : { - "counterparty" : { - "merchantAccount" : "YOUR_MERCHANT_ACCOUNT" - }, - "triggerAmount" : { - "currency" : "EUR", - "value" : 50000 - }, - "currency" : "EUR", - "schedule" : { - "type" : "balance" - }, - "type" : "pull", - "status" : "active" - } - }, - "post-balanceAccounts-balanceAccountId-sweeps-createSweep-pull-200" : { - "summary" : "Sweep of pull type created", - "description" : "Example response for creating a pull sweep", - "value" : { - "id" : "SWPC4227C224555B5FTD2NT2JV4WN5", - "counterparty" : { - "merchantAccount" : "YOUR_MERCHANT_ACCOUNT" - }, - "triggerAmount" : { - "currency" : "EUR", - "value" : 50000 - }, - "currency" : "EUR", - "schedule" : { - "type" : "balance" - }, - "type" : "pull", - "status" : "active" - } - }, - "post-balanceAccounts-balanceAccountId-sweeps-createSweep-push" : { - "summary" : "Create a sweep to push funds out of a balance account", - "description" : "Example request for creating a push sweep", - "value" : { - "counterparty" : { - "balanceAccountId" : "BA32278887611B5FTD2KR6TJD" - }, - "triggerAmount" : { - "currency" : "EUR", - "value" : 50000 - }, - "currency" : "EUR", - "schedule" : { - "type" : "weekly" - }, - "type" : "push", - "status" : "active" - } - }, - "post-balanceAccounts-balanceAccountId-sweeps-createSweep-push-200" : { - "summary" : "Sweep of push type created", - "description" : "Example response for creating a push sweep", - "value" : { - "id" : "SWPC4227C224555B5FTD2NT2JV4WN5", - "counterparty" : { - "balanceAccountId" : "BA32278887611B5FTD2KR6TJD" - }, - "triggerAmount" : { - "currency" : "EUR", - "value" : 50000 - }, - "currency" : "EUR", - "schedule" : { - "type" : "weekly" - }, - "type" : "push", - "status" : "active" - } - }, - "post-balanceAccounts-balanceAccountId-sweeps-createSweep-push-priorities" : { - "summary" : "Create a sweep to push funds out of a balance account with set priorities", - "description" : "Example request for creating a push sweep with priorities", - "value" : { - "counterparty" : { - "transferInstrumentId" : "SE322JV223222J5HGLCGF2WDV" - }, - "triggerAmount" : { - "currency" : "EUR", - "value" : 50000 - }, - "currency" : "EUR", - "priorities" : [ - "fast", - "instant" - ], - "category" : "bank", - "schedule" : { - "type" : "weekly" - }, - "type" : "push", - "status" : "active" - } - }, - "post-balanceAccounts-balanceAccountId-sweeps-createSweep-push-priorities-200" : { - "summary" : "Sweep of push type with priorities created", - "description" : "Example response for creating a push sweep with priorities", - "value" : { - "id" : "SWPC4227C224555B5FTD2NT2JV4WN9", - "counterparty" : { - "transferInstrumentId" : "SE322JV223222J5HGLCGF2WDV" - }, - "triggerAmount" : { - "currency" : "EUR", - "value" : 50000 - }, - "currency" : "EUR", - "priorities" : [ - "fast", - "instant" - ], - "category" : "bank", - "schedule" : { - "type" : "weekly" - }, - "type" : "push", - "status" : "active" - } - }, - "post-balanceAccounts-createBalanceAccount" : { - "summary" : "Create a balance account", - "description" : "Example request for creating a balance account", - "value" : { - "accountHolderId" : "AH32272223222C5GXTD343TKP", - "description" : "S.Hopper - Main balance account" - } - }, - "post-balanceAccounts-createBalanceAccount-200" : { - "summary" : "Create a balance account", - "description" : "Example request for creating a balance account", - "value" : { - "accountHolderId" : "AH32272223222C5GXTD343TKP", - "defaultCurrencyCode" : "EUR", - "description" : "S.Hopper - Main balance account", - "timeZone" : "Europe/Amsterdam", - "balances" : [ - { - "available" : 0, - "balance" : 0, - "currency" : "EUR", - "reserved" : 0 - } - ], - "id" : "BA3227C223222H5J4DCGQ9V9L", - "status" : "active" - } - }, - "post-balanceAccounts-createBalanceAccountCAD" : { - "summary" : "Create a balance account - CAD default currency", - "description" : "Example request for creating a balance account with CAD as the default currency.", - "value" : { - "accountHolderId" : "AH0000000000000000000001", - "description" : "CAD Balance Account", - "defaultCurrencyCode" : "CAD", - "timeZone" : "America/Toronto" - } - }, - "post-balanceAccounts-createBalanceAccountCAD-200" : { - "summary" : "Create a balance account - CAD default currency", - "description" : "Example request for creating a balance account with CAD as the default currency.", - "value" : { - "accountHolderId" : "AH0000000000000000000001", - "defaultCurrencyCode" : "CAD", - "description" : "CAD Balance Account", - "timeZone" : "America/Toronto", - "balances" : [ - { - "available" : 0, - "balance" : 0, - "currency" : "CAD", - "pending" : 0, - "reserved" : 0 - } - ], - "id" : "BA0000000000000000000001", - "status" : "active" - } - }, - "post-balanceAccounts-createBalanceAccountGBP" : { - "summary" : "Create a balance account - GBP default currency", - "description" : "Example request for creating a balance account with GBP as the default currency.", - "value" : { - "accountHolderId" : "AH0000000000000000000001", - "description" : "GBP Balance Account", - "defaultCurrencyCode" : "GBP", - "timeZone" : "Europe/London" - } - }, - "post-balanceAccounts-createBalanceAccountGBP-200" : { - "summary" : "Create a balance account - GBP default currency", - "description" : "Example request for creating a balance account with GBP as the default currency.", - "value" : { - "accountHolderId" : "AH0000000000000000000001", - "defaultCurrencyCode" : "GBP", - "description" : "GBP Balance Account", - "timeZone" : "Europe/London", - "balances" : [ - { - "available" : 0, - "balance" : 0, - "currency" : "GBP", - "pending" : 0, - "reserved" : 0 - } - ], - "id" : "BA0000000000000000000001", - "status" : "active" - } - }, - "post-balanceAccounts-createBalanceAccountUSD" : { - "summary" : "Create a balance account - USD default currency", - "description" : "Example request for creating a balance account with USD as the default currency.", - "value" : { - "accountHolderId" : "AH0000000000000000000001", - "description" : "USD Balance Account", - "defaultCurrencyCode" : "USD", - "timeZone" : "America/Chicago" - } - }, - "post-balanceAccounts-createBalanceAccountUSD-200" : { - "summary" : "Create a balance account - USD default currency", - "description" : "Example request for creating a balance account with USD as the default currency.", - "value" : { - "accountHolderId" : "AH0000000000000000000001", - "defaultCurrencyCode" : "USD", - "description" : "USD Balance Account", - "timeZone" : "America/Chicago", - "balances" : [ - { - "available" : 0, - "balance" : 0, - "currency" : "USD", - "pending" : 0, - "reserved" : 0 - } - ], - "id" : "BA0000000000000000000001", - "status" : "active" - } - }, - "post-paymentInstrumentGroups-createPaymentInstrumentGroups" : { - "summary" : "Create a payment instrument group", - "description" : "Example request for creating a payment instrument group", - "value" : { - "balancePlatform" : "YOUR_BALANCE_PLATFORM", - "txVariant" : "mc" - } - }, - "post-paymentInstrumentGroups-createPaymentInstrumentGroups-200" : { - "summary" : "Create a payment instrument group", - "description" : "Example request for creating a payment instrument group", - "value" : { - "balancePlatform" : "YOUR_BALANCE_PLATFORM", - "txVariant" : "mc", - "id" : "PG32272223222H5J4DCRVC9DH" - } - }, - "post-paymentInstruments-createBusinessAccountNL" : { - "summary" : "Create a business account in NL", - "description" : "Example request for creating a business account in NL", - "value" : { - "type" : "bankAccount", - "description" : "YOUR_DESCRIPTION", - "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", - "issuingCountryCode" : "NL" - } - }, - "post-paymentInstruments-createBusinessAccountNL-200" : { - "summary" : "Business account in NL created", - "description" : "Example response for creating a business account in NL", - "value" : { - "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", - "issuingCountryCode" : "NL", - "status" : "active", - "type" : "bankAccount", - "description" : "YOUR_DESCRIPTION", - "bankAccount" : { - "formFactor" : "physical", - "type" : "iban", - "iban" : "NL20ADYB2017000035" - }, - "id" : "PI322LJ223222B5DJS7CD9LWL" - } - }, - "post-paymentInstruments-createBusinessAccountNL-DELocalIBAN" : { - "summary" : "Create a local IBAN in DE (first create an NL business account)", - "description" : "Example request for creating a local IBAN in DE", - "value" : { - "type" : "bankAccount", - "description" : "YOUR_DESCRIPTION", - "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", - "issuingCountryCode" : "DE", - "bankAccount" : { - "formFactor" : "virtual" - } - } - }, - "post-paymentInstruments-createBusinessAccountNL-DELocalIBAN-200" : { - "summary" : "Virtual business account in DE (local IBAN) created", - "description" : "Example response for creating a local IBAN business account in DE", - "value" : { - "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", - "description" : "YOUR_DESCRIPTION", - "issuingCountryCode" : "DE", - "status" : "active", - "type" : "bankAccount", - "bankAccount" : { - "type" : "iban", - "iban" : "DE20100190002300001206", - "formFactor" : "virtual" - }, - "id" : "PI3227C223226C5JW49ZHBQMS" - } - }, - "post-paymentInstruments-createBusinessAccountNL-FRLocalIBAN" : { - "summary" : "Create a local IBAN in FR (first create an NL business account)", - "description" : "Example request for creating a local IBAN in FR", - "value" : { - "type" : "bankAccount", - "description" : "YOUR_DESCRIPTION", - "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", - "issuingCountryCode" : "FR", - "bankAccount" : { - "formFactor" : "virtual" - } - } - }, - "post-paymentInstruments-createBusinessAccountNL-FRLocalIBAN-200" : { - "summary" : "Virtual business account in FR (local IBAN) created", - "description" : "Example response for creating a local IBAN business account in FR", - "value" : { - "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", - "description" : "YOUR_DESCRIPTION", - "issuingCountryCode" : "FR", - "status" : "active", - "type" : "bankAccount", - "bankAccount" : { - "type" : "iban", - "iban" : "FR7621733712350230000110741", - "formFactor" : "virtual" - }, - "id" : "PI3227C223226C5JW49ZAHSYD" - } - }, - "post-paymentInstruments-createBusinessAccountUK" : { - "summary" : "Create a business account in the UK", - "description" : "Example request for creating a business account in the UK", - "value" : { - "type" : "bankAccount", - "description" : "YOUR_DESCRIPTION", - "balanceAccountId" : "BA328R4223227F5KMH9NJB2S4", - "issuingCountryCode" : "GB" - } - }, - "post-paymentInstruments-createBusinessAccountUK-200" : { - "summary" : "Business account in the UK created", - "description" : "Example response for creating a business account in the UK", - "value" : { - "balanceAccountId" : "BA328R4223227F5KMH9NJB2S4", - "description" : "YOUR_DESCRIPTION", - "issuingCountryCode" : "GB", - "status" : "active", - "type" : "bankAccount", - "bankAccount" : { - "accountNumber" : "20010731", - "formFactor" : "physical", - "iban" : "GB68ADYX04295720010731", - "sortCode" : "042957", - "type" : "ukLocal" - }, - "id" : "PI328Q9223227F5KMH9P92MDG" - } - }, - "post-paymentInstruments-createBusinessAccountUS" : { - "summary" : "Create a business account in the US", - "description" : "Example request for creating a business account in the US", - "value" : { - "type" : "bankAccount", - "description" : "YOUR_DESCRIPTION", - "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", - "issuingCountryCode" : "US" - } - }, - "post-paymentInstruments-createBusinessAccountUS-200" : { - "summary" : "Business account in the US created", - "description" : "Example response for creating a business account in the US", - "value" : { - "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", - "issuingCountryCode" : "US", - "status" : "active", - "type" : "bankAccount", - "description" : "YOUR_DESCRIPTION", - "bankAccount" : { - "accountNumber" : "333720756", - "accountType" : "checking", - "formFactor" : "physical", - "routingNumber" : "210000210", - "type" : "usLocal" - }, - "id" : "PI322LJ223222B5DJS7CD9LWL" - } - }, - "post-paymentInstruments-createPhysicalCard" : { - "summary" : "Create a physical card", - "description" : "Example request for creating a physical card", - "value" : { - "type" : "card", - "issuingCountryCode" : "NL", - "balanceAccountId" : "BA32272223222B59CZ3T52DKZ", - "description" : "S.Hopper - Main card", - "status" : "inactive", - "card" : { - "formFactor" : "physical", - "brand" : "mc", - "brandVariant" : "mcdebit", - "cardholderName" : "Sam Hopper", - "deliveryContact" : { - "address" : { - "city" : "Amsterdam", - "country" : "NL", - "stateOrProvince" : "NH", - "line1" : "Brannan Street", - "line2" : "274", - "postalCode" : "1020CD" - }, - "name" : { - "firstName" : "Sam", - "lastName" : "Hopper" - } - }, - "configuration" : { - "configurationProfileId" : "CP123AB45678C91ABCD2ABCDE" - } - } - } - }, - "post-paymentInstruments-createPhysicalCard-200" : { - "summary" : "Physical card created", - "description" : "Example response for creating a physical card", - "value" : { - "balanceAccountId" : "BA32272223222B59CZ3T52DKZ", - "description" : "S. Hopper - Main card", - "issuingCountryCode" : "NL", - "status" : "inactive", - "type" : "card", - "card" : { - "brand" : "mc", - "brandVariant" : "mcdebit", - "cardholderName" : "Sam Hopper", - "formFactor" : "physical", - "number" : "************5785", - "bin" : "555544", - "expiration" : { - "month" : "08", - "year" : "2024" - }, - "lastFour" : "2765", - "authentication" : { - "password" : "******", - "phone" : { - "number" : "+123456789", - "type" : "mobile" - } - }, - "deliveryContact" : { - "address" : { - "city" : "Amsterdam", - "country" : "NL", - "stateOrProvince" : "NH", - "line1" : "Brannan Street", - "line2" : "274", - "postalCode" : "1020CD" - }, - "name" : { - "firstName" : "Sam", - "lastName" : "Hopper" - } - }, - "configuration" : { - "configurationProfileId" : "CP123AB45678C91ABCD2ABCDE" - } - }, - "id" : "PI3227C223222B5BPCMFXD2XG" - } - }, - "post-paymentInstruments-createVirtualCard" : { - "summary" : "Create a virtual card", - "description" : "Example request for creating a virtual card", - "value" : { - "type" : "card", - "description" : "My test card", - "balanceAccountId" : "BA3227C223222B5FG88S28BGN", - "issuingCountryCode" : "NL", - "card" : { - "cardholderName" : "Simon Hopper", - "brand" : "mc", - "brandVariant" : "mcdebit", - "formFactor" : "virtual" - } - } - }, - "post-paymentInstruments-createVirtualCard-200" : { - "summary" : "Virtual card created", - "description" : "Example response for creating a virtual card", - "value" : { - "balanceAccountId" : "BA3227C223222B5FG88S28BGN", - "description" : "My test card", - "issuingCountryCode" : "NL", - "status" : "active", - "type" : "card", - "card" : { - "brand" : "mc", - "brandVariant" : "mcdebit", - "cardholderName" : "Simon Hopper", - "formFactor" : "virtual", - "bin" : "555544", - "cvc" : "136", - "expiration" : { - "month" : "11", - "year" : "2025" - }, - "lastFour" : "3703", - "number" : "5555444411213703" - }, - "id" : "PI32272223222C5GXTDWH3TTN" - } - }, - "post-pins-change-requestPinChange" : { - "summary" : "Request a PIN change", - "value" : { - "paymentInstrumentId" : "PI6789678967896789", - "encryptedKey" : "75989E8881284D10153ABACF022EEA09F5...", - "encryptedPinBlock" : "63E5060591EF65F48DD1D4FECD0FECD5", - "token" : "5555341244441115" - } - }, - "post-pins-change-requestPinChange-200" : { - "summary" : "Request completed", - "value" : { - "status" : "completed" - } - }, - "post-pins-reveal-requestPinBlock" : { - "summary" : "Request a PIN block", - "value" : { - "paymentInstrumentId" : "PI3227C223222B5BPCMFXD2XG", - "encryptedKey" : "75989E8881284D10153ABACF022EEA09F5..." - } - }, - "post-pins-reveal-requestPinBlock-200" : { - "summary" : "Response with encrypted PIN block", - "value" : { - "encryptedPinBlock" : "63E5060591EF65F48DD1D4FECD0FECD5", - "token" : "5555341244441115" - } - }, - "post-transactionRules-createTransactionRuleAllowPos" : { - "summary" : "Allow only point-of-sale transactions", - "description" : "Example request to allow only point-of-sale transactions", - "value" : { - "description" : "Allow only point-of-sale transactions", - "reference" : "YOUR_REFERENCE_4F7346", - "entityKey" : { - "entityType" : "paymentInstrument", - "entityReference" : "PI3227C223222B5FG88SB8BHR" - }, - "status" : "active", - "interval" : { - "type" : "perTransaction" - }, - "ruleRestrictions" : { - "processingTypes" : { - "operation" : "noneMatch", - "value" : [ - "pos" - ] - } - }, - "type" : "blockList" - } - }, - "post-transactionRules-createTransactionRuleAllowPos-200" : { - "summary" : "Transaction rule to allow only point-of-sale transactions", - "description" : "Example response for allowing only point-of-sale transactions", - "value" : { - "description" : "Allow only point-of-sale transactions", - "entityKey" : { - "entityReference" : "PI3227C223222B5FG88SB8BHR", - "entityType" : "paymentInstrument" - }, - "interval" : { - "timeZone" : "UTC", - "type" : "perTransaction" - }, - "outcomeType" : "hardBlock", - "reference" : "YOUR_REFERENCE_4F7346", - "requestType" : "authorization", - "ruleRestrictions" : { - "processingTypes" : { - "operation" : "noneMatch", - "value" : [ - "pos" - ] - } - }, - "startDate" : "2023-06-29T22:34:36.173226192+02:00", - "status" : "active", - "type" : "blockList", - "id" : "TR3227C223222H5J4D9ML9V4D" - } - }, - "post-transactionRules-createTransactionRuleIncreaseScore" : { - "summary" : "Increase the score of a card", - "description" : "Example request to increase the score of a card", - "value" : { - "description" : "Assign score if more than 500 EUR in 2 hours", - "entityKey" : { - "entityType" : "paymentInstrument", - "entityReference" : "PI3227C223222B5FG88SB8BHR" - }, - "interval" : { - "type" : "sliding", - "duration" : { - "value" : 2, - "unit" : "hours" - } - }, - "outcomeType" : "scoreBased", - "reference" : "myRule11789", - "ruleRestrictions" : { - "totalAmount" : { - "operation" : "greaterThan", - "value" : { - "currency" : "EUR", - "value" : 50000 - } - } - }, - "score" : 20, - "type" : "velocity" - } - }, - "post-transactionRules-createTransactionRuleIncreaseScore-200" : { - "summary" : "Transaction rule for increasing the score of a card", - "description" : "Example response to increase the score of a card", - "value" : { - "description" : "Assign score if more than 500 EUR in 2 hours", - "entityKey" : { - "entityReference" : "PI3227C223222B5FG88SB8BHR", - "entityType" : "paymentInstrument" - }, - "interval" : { - "duration" : { - "unit" : "hours", - "value" : 2 - }, - "timeZone" : "UTC", - "type" : "sliding" - }, - "outcomeType" : "scoreBased", - "reference" : "myRule11789", - "requestType" : "authorization", - "ruleRestrictions" : { - "totalAmount" : { - "operation" : "greaterThan", - "value" : { - "currency" : "EUR", - "value" : 50000 - } - } - }, - "score" : 20, - "status" : "inactive", - "type" : "velocity", - "id" : "TR3227C223222H5J4D9S39V59" - } - }, - "post-transactionRules-createTransactionRuleLimitSliding" : { - "summary" : "Limit total amount in the last 12 hours", - "description" : "Example request to limit the total amount in a sliding interval", - "value" : { - "description" : "Up to 1000 EUR per card for the last 12 hours", - "reference" : "YOUR_REFERENCE_2918A", - "status" : "active", - "entityKey" : { - "entityReference" : "BA3227C223222B5FN65355NR3", - "entityType" : "balanceAccount" - }, - "aggregationLevel" : "paymentInstrument", - "interval" : { - "type" : "sliding", - "duration" : { - "value" : 12, - "unit" : "hours" - } - }, - "outcomeType" : "hardBlock", - "ruleRestrictions" : { - "totalAmount" : { - "operation" : "greaterThan", - "value" : { - "value" : 100000, - "currency" : "EUR" - } - } - }, - "type" : "velocity" - } - }, - "post-transactionRules-createTransactionRuleLimitSliding-200" : { - "summary" : "Transaction rule for limiting total amount in the last 12 hours", - "description" : "Example response to limit the total amount in a sliding interval", - "value" : { - "aggregationLevel" : "paymentInstrument", - "description" : "Up to 1000 EUR per card for the last 12 hours", - "entityKey" : { - "entityReference" : "BA3227C223222B5FN65355NR3", - "entityType" : "balanceAccount" - }, - "interval" : { - "duration" : { - "unit" : "hours", - "value" : 12 - }, - "timeZone" : "UTC", - "type" : "sliding" - }, - "outcomeType" : "hardBlock", - "reference" : "YOUR_REFERENCE_2918A", - "requestType" : "authorization", - "ruleRestrictions" : { - "totalAmount" : { - "operation" : "greaterThan", - "value" : { - "currency" : "EUR", - "value" : 100000 - } - } - }, - "startDate" : "2023-06-29T22:39:06.887628679+02:00", - "status" : "active", - "type" : "velocity", - "id" : "TR32272223222H5J4D9Z8C97H" - } - }, - "post-transactionRules-createTransactionRuleLimitTransaction" : { - "summary" : "Limit international payments", - "description" : "Example request to limit total amount of international transactions", - "value" : { - "description" : "Up to 50 EUR international transactions", - "reference" : "YOUR_REFERENCE_B2634", - "status" : "active", - "entityKey" : { - "entityType" : "balanceAccount", - "entityReference" : "BA3227C223222B5FN65355NR3" - }, - "interval" : { - "type" : "daily" - }, - "outcomeType" : "hardBlock", - "ruleRestrictions" : { - "totalAmount" : { - "operation" : "greaterThan", - "value" : { - "currency" : "EUR", - "value" : 5000 - } - }, - "internationalTransaction" : { - "operation" : "equals", - "value" : true - } - }, - "type" : "velocity" - } - }, - "post-transactionRules-createTransactionRuleLimitTransaction-200" : { - "summary" : "Transaction rule for limiting international payments", - "description" : "Example response to limit total amount of international transactions", - "value" : { - "description" : "Up to 50 EUR international transactions", - "entityKey" : { - "entityReference" : "BA3227C223222B5FN65355NR3", - "entityType" : "balanceAccount" - }, - "interval" : { - "timeOfDay" : "00:00:00", - "timeZone" : "UTC", - "type" : "daily" - }, - "outcomeType" : "hardBlock", - "reference" : "YOUR_REFERENCE_B2634", - "requestType" : "authorization", - "ruleRestrictions" : { - "internationalTransaction" : { - "operation" : "equals", - "value" : true - }, - "totalAmount" : { - "operation" : "greaterThan", - "value" : { - "currency" : "EUR", - "value" : 5000 - } - } - }, - "startDate" : "2023-06-29T22:39:54.068487152+02:00", - "status" : "active", - "type" : "velocity", - "id" : "TR3227C223222H5J4DB2X9V65" - } - }, - "post-transferRoutes-calculate-transferRoutesCalculate" : { - "summary" : "Calculate transfer routes", - "description" : "Example request for calculating transfer routes", - "value" : { - "balancePlatform" : "YOUR_BALANCE_PLATFORM", - "currency" : "USD", - "category" : "bank", - "counterparty" : { - "bankAccount" : { - "accountIdentification" : { - "type" : "iban", - "iban" : "NL91ABNA0417164300" - } - } - } - } - }, - "post-transferRoutes-calculate-transferRoutesCalculate-200" : { - "summary" : "Response for calculating transfer routes", - "description" : "Example response for calculating transfer routes", - "value" : { - "transferRoutes" : [ - { - "country" : "NL", - "currency" : "USD", - "priority" : "crossBorder", - "requirements" : [ - { - "description" : "Amount of transfer must be at least 100, and no greater than 99999999999", - "max" : 99999999999, - "min" : 100, - "type" : "amountMinMaxRequirement" - }, - { - "description" : "Country, street and city is required.", - "requiredAddressFields" : [ - "line1", - "city", - "country" - ], - "type" : "addressRequirement" - }, - { - "description" : "Bank account identification type must be iban or numberAndBic", - "bankAccountIdentificationTypes" : [ - "iban", - "numberAndBic" - ], - "type" : "bankAccountIdentificationTypeRequirement" - }, - { - "issuingCountryCode" : "NL", - "paymentInstrumentType" : "BankAccount", - "type" : "paymentInstrumentRequirement" - } - ] - }, - { - "country" : "NL", - "currency" : "USD", - "priority" : "wire", - "requirements" : [ - { - "description" : "Amount of transfer must be at least 100, and no greater than 99999999999", - "max" : 99999999999, - "min" : 100, - "type" : "amountMinMaxRequirement" - }, - { - "description" : "Country, street and city is required.", - "requiredAddressFields" : [ - "line1", - "city", - "country" - ], - "type" : "addressRequirement" - }, - { - "description" : "Bank account identification type must be iban or numberAndBic", - "bankAccountIdentificationTypes" : [ - "iban", - "numberAndBic" - ], - "type" : "bankAccountIdentificationTypeRequirement" - }, - { - "issuingCountryCode" : "NL", - "paymentInstrumentType" : "BankAccount", - "type" : "paymentInstrumentRequirement" - } - ] - } - ] - } - }, - "post-validateBankAccountIdentification-validateBankAccountIdentificationIban" : { - "summary" : "Validate an IBAN", - "value" : { - "accountIdentification" : { - "type" : "iban", - "iban" : "1001001234" - } - } - }, - "post-validateBankAccountIdentification-validateBankAccountIdentificationIban-422" : { - "summary" : "Invalid IBAN details", - "value" : { - "type" : "https://docs.adyen.com/errors/validation", - "title" : "Invalid bank account identification details provided", - "detail" : "Provided IBAN is incorrect", - "status" : 422, - "invalidFields" : [ - { - "name" : "iban", - "value" : "1001001234", - "message" : "Invalid IBAN." - } - ], - "errorCode" : "33_01" - } - }, - "post-validateBankAccountIdentification-validateBankAccountIdentificationUs" : { - "summary" : "Validate a US bank account", - "value" : { - "accountIdentification" : { - "type" : "usLocal", - "accountNumber" : "12345JHDhjkf67890", - "accountType" : "checking", - "routingNumber" : "121000567" - } - } - }, - "post-validateBankAccountIdentification-validateBankAccountIdentificationUs-422" : { - "summary" : "Invalid US bank account details", - "value" : { - "type" : "https://docs.adyen.com/errors/validation", - "title" : "Invalid bank account identification details provided", - "detail" : "Provided account number and the routing number are incorrect", - "status" : 422, - "invalidFields" : [ - { - "name" : "accountNumber", - "value" : "12345JHDhjkf67890", - "message" : "Invalid account number." - }, - { - "name" : "routingNumber", - "value" : "121000567", - "message" : "Invalid routing number." - } - ], - "errorCode" : "33_01" - } - } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 1, + "x-methodName" : "createTransactionRule" } - } + }, + "/transactionRules/{transactionRuleId}" : { + "get" : { + "tags" : [ "Transaction rules" ], + "summary" : "Get a transaction rule", + "description" : "Returns the details of a transaction rule.", + "operationId" : "get-transactionRules-transactionRuleId", + "parameters" : [ { + "name" : "transactionRuleId", + "in" : "path", + "description" : "The unique identifier of the transaction rule.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/TransactionRuleResponse" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/get-transactionRules-transactionRuleId-success-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 2, + "x-methodName" : "getTransactionRule" + }, + "delete" : { + "tags" : [ "Transaction rules" ], + "summary" : "Delete a transaction rule", + "description" : "Deletes a transaction rule.", + "operationId" : "delete-transactionRules-transactionRuleId", + "parameters" : [ { + "name" : "transactionRuleId", + "in" : "path", + "description" : "The unique identifier of the transaction rule.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/TransactionRule" + }, + "examples" : { + "success" : { + "$ref" : "#/components/examples/delete-transactionRules-transactionRuleId-success-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 5, + "x-methodName" : "deleteTransactionRule" + }, + "patch" : { + "tags" : [ "Transaction rules" ], + "summary" : "Update a transaction rule", + "description" : "Updates a transaction rule. \n\n* To update only the status of a transaction rule, send only the `status` parameter. All other parameters not provided in the request are left unchanged.\n\n* When updating any other parameter, you need to send all existing resource parameters. If you omit a parameter in the request, that parameter is removed from the resource.", + "operationId" : "patch-transactionRules-transactionRuleId", + "parameters" : [ { + "name" : "transactionRuleId", + "in" : "path", + "description" : "The unique identifier of the transaction rule.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/TransactionRuleInfo" + }, + "examples" : { + "updateTransactionRuleStatus" : { + "$ref" : "#/components/examples/patch-transactionRules-transactionRuleId-updateTransactionRuleStatus" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/TransactionRule" + }, + "examples" : { + "updateTransactionRuleStatus" : { + "$ref" : "#/components/examples/patch-transactionRules-transactionRuleId-updateTransactionRuleStatus-200" + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-400" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 3, + "x-methodName" : "updateTransactionRule" + } + }, + "/transferRoutes/calculate" : { + "post" : { + "tags" : [ "Transfer routes" ], + "summary" : "Calculate transfer routes", + "description" : "Returns available transfer routes based on a combination of transfer `country`, `currency`, `counterparty`, and `priorities`. Use this endpoint to find optimal transfer priorities and associated requirements before you [make a transfer](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers).", + "operationId" : "post-transferRoutes-calculate", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/TransferRouteRequest" + }, + "examples" : { + "transferRoutesCalculate" : { + "$ref" : "#/components/examples/post-transferRoutes-calculate-transferRoutesCalculate" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/TransferRouteResponse" + }, + "examples" : { + "transferRoutesCalculate" : { + "$ref" : "#/components/examples/post-transferRoutes-calculate-transferRoutesCalculate-200" + } + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 1, + "x-methodName" : "calculateTransferRoutes" + } + }, + "/validateBankAccountIdentification" : { + "post" : { + "tags" : [ "Bank account validation" ], + "summary" : "Validate a bank account", + "description" : "Validates bank account identification details. You can use this endpoint to validate bank account details before you [make a transfer](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers) or [create a transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments).", + "operationId" : "post-validateBankAccountIdentification", + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BankAccountIdentificationValidationRequest" + }, + "examples" : { + "validateBankAccountIdentificationIban" : { + "$ref" : "#/components/examples/post-validateBankAccountIdentification-validateBankAccountIdentificationIban" + }, + "validateBankAccountIdentificationUs" : { + "$ref" : "#/components/examples/post-validateBankAccountIdentification-validateBankAccountIdentificationUs" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "No Content - look at the actual response code for the status of the request. " + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-401" + } + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-403" + } + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-422" + }, + "validateBankAccountIdentificationIban" : { + "$ref" : "#/components/examples/post-validateBankAccountIdentification-validateBankAccountIdentificationIban-422" + }, + "validateBankAccountIdentificationUs" : { + "$ref" : "#/components/examples/post-validateBankAccountIdentification-validateBankAccountIdentificationUs-422" + } + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/RestServiceError" + }, + "examples" : { + "generic" : { + "$ref" : "#/components/examples/generic-500" + } + } + } + } + } + }, + "security" : [ { + "clientKey" : [ ] + }, { + "BasicAuth" : [ ] + }, { + "ApiKeyAuth" : [ ] + } ], + "x-addedInVersion" : "1", + "x-sortIndex" : 1, + "x-methodName" : "validateBankAccountIdentification" + } + }, + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings" : { + "get" : { + "tags" : [ "Balances" ], + "summary" : "Get webhook settings", + "description" : "Returns all settings configured for triggering [balance webhooks](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balancePlatform.balanceAccount.balance.updated).", + "operationId" : "get-balancePlatforms-balancePlatformId-webhooks-webhookId-settings", + "parameters" : [ { + "name" : "balancePlatformId", + "in" : "path", + "description" : "The unique identifier of the balance platform.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "webhookId", + "in" : "path", + "description" : "The unique identifier of the balance webhook.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/WebhookSettingResponse" + } + }, + "examples" : { + "get-webhook-settings-200" : { + "summary" : "Get all webhook settings", + "description" : "Retrieve all settings of a webhook", + "value" : [ { + "id" : "BWHS00000000000000000000000001", + "type" : "balance", + "target" : { + "type" : "balancePlatform", + "id" : "YOUR_BALANCE_PLATFORM" + }, + "currency" : "USD", + "status" : "active", + "conditions" : [ { + "balanceType" : "available", + "conditionType" : "lessThan", + "value" : 500000 + } ] + }, { + "id" : "BWHS00000000000000000000000002", + "type" : "balance", + "target" : { + "type" : "balanceAccount", + "id" : "BA00000000000000000LIABLE" + }, + "currency" : "USD", + "status" : "active", + "conditions" : [ { + "balanceType" : "available", + "conditionType" : "greaterThan", + "value" : 1000000 + } ] + } ] + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "404" : { + "description" : "Not Found - the payment was not found", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + } + }, + "x-sortIndex" : 4 + }, + "post" : { + "tags" : [ "Balances" ], + "summary" : "Create a balance webhook setting", + "description" : "Configures the criteria for triggering [balance webhooks](https://docs.adyen.com/api-explorer/balance-webhooks/1/post/balancePlatform.balanceAccount.balance.updated).\n\nAdyen sends balance webhooks to notify you of balance changes in your balance platform. They can be triggered when the balance reaches, exceeds, or drops below a specific value in a specific currency.\n\nYou can get notified about balance changes in your entire balance platform, in the balance accounts of a specific user, or a specific balance account. The hierarchy between the webhook settings are based on the following business logic:\n\n* Settings on a higher level apply to all lower level resources (balance platform > account holder > balance acocunt).\n\n* The most granular setting overrides higher level settings (balance account > account holder > balance platform).", + "operationId" : "post-balancePlatforms-balancePlatformId-webhooks-webhookId-settings", + "parameters" : [ { + "name" : "balancePlatformId", + "in" : "path", + "description" : "The unique identifier of the balance platform.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "webhookId", + "in" : "path", + "description" : "The unique identifier of the balance webhook.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/BalanceWebhookSettingsRequest" + }, + "examples" : { + "create-webhook-setting" : { + "summary" : "Create a webhook setting", + "description" : "Create a webhook setting", + "value" : { + "type" : "balance", + "target" : { + "type" : "balanceAccount", + "id" : "BA00000000000000000LIABLE" + }, + "currency" : "USD", + "status" : "active", + "conditions" : [ { + "balanceType" : "available", + "conditionType" : "lessThan", + "value" : 500000 + } ] + } + } + } + } + }, + "required" : true + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/WebhookSettingResponse" + }, + "examples" : { + "create-webhook-setting" : { + "summary" : "Successfully created a webhook setting", + "description" : "Successfully created a webhook setting", + "value" : { + "id" : "BWHS00000000000000000000000001", + "type" : "balance", + "target" : { + "type" : "balanceAccount", + "id" : "BA00000000000000000LIABLE" + }, + "currency" : "USD", + "status" : "active", + "conditions" : [ { + "balanceType" : "available", + "conditionType" : "lessThan", + "value" : 500000 + } ] + } + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "404" : { + "description" : "Not Found - the payment was not found", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + } + }, + "x-sortIndex" : 1 + } + }, + "/balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}" : { + "get" : { + "tags" : [ "Balances" ], + "summary" : "Get a webhook setting", + "description" : "Returns the details of a specific balance webhook setting configured for triggering [balance webhooks](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balancePlatform.balanceAccount.balance.updated).", + "operationId" : "get-balancePlatforms-balancePlatformId-webhooks-webhookId-settings-settingId", + "parameters" : [ { + "name" : "balancePlatformId", + "in" : "path", + "description" : "The unique identifier of the balance platform.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "webhookId", + "in" : "path", + "description" : "The unique identifier of the balance webhook.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "settingId", + "in" : "path", + "description" : "The unique identifier of the balance webhook setting.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/WebhookSettingResponse" + }, + "examples" : { + "get-webhook-setting-by-id-200" : { + "summary" : "Get a webhook setting", + "description" : "Retrieve the details of a webhook setting", + "value" : { + "id" : "BWHS00000000000000000000000001", + "type" : "balance", + "target" : { + "type" : "balancePlatform", + "id" : "YOUR_BALANCE_PLATFORM" + }, + "currency" : "USD", + "status" : "active", + "conditions" : [ { + "balanceType" : "available", + "conditionType" : "lessThan", + "value" : 500000 + } ] + } + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "404" : { + "description" : "Not Found - the payment was not found", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + } + }, + "x-sortIndex" : 3 + }, + "delete" : { + "tags" : [ "Balances" ], + "summary" : "Delete a webhook setting", + "description" : "Deletes a setting that contains the conditions for triggering [balance webhooks](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balancePlatform.balanceAccount.balance.updated).", + "operationId" : "delete-balancePlatforms-balancePlatformId-webhooks-webhookId-settings-settingId", + "parameters" : [ { + "name" : "balancePlatformId", + "in" : "path", + "description" : "The unique identifier of the balance platform.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "webhookId", + "in" : "path", + "description" : "The unique identifier of the balance webhook.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "settingId", + "in" : "path", + "description" : "The unique identifier of the balance webhook setting.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "404" : { + "description" : "Not Found - the payment was not found", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + } + }, + "x-sortIndex" : 5 + }, + "patch" : { + "tags" : [ "Balances" ], + "summary" : "Update a webhook setting", + "description" : "Updates the conditions the balance change needs to meet for Adyen to send a [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balancePlatform.balanceAccount.balance.updated).", + "operationId" : "patch-balancePlatforms-balancePlatformId-webhooks-webhookId-settings-settingId", + "parameters" : [ { + "name" : "balancePlatformId", + "in" : "path", + "description" : "The unique identifier of the balance platform.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "webhookId", + "in" : "path", + "description" : "The unique identifier of the balance webhook.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + }, { + "name" : "settingId", + "in" : "path", + "description" : "The unique identifier of the balance webhook setting.", + "required" : true, + "style" : "simple", + "explode" : false, + "schema" : { + "type" : "string" + } + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/PatchableBalanceWebhookSettingsRequest" + }, + "examples" : { + "update-webhook-setting" : { + "summary" : "Update a webhook setting", + "description" : "Update a webhook setting", + "value" : { + "type" : "balance", + "target" : { + "type" : "balanceAccount", + "id" : "BA00000000000000000LIABLE" + }, + "currency" : "USD", + "status" : "active", + "conditions" : [ { + "balanceType" : "available", + "conditionType" : "lessThan", + "value" : 500000 + }, { + "balanceType" : "balance", + "conditionType" : "greaterThan", + "value" : 1000000 + } ] + } + }, + "deactivate-webhook-setting" : { + "summary" : "Deactivate a webhook setting", + "description" : "Deactivate a webhook setting", + "value" : { + "type" : "balance", + "status" : "inactive" + } + } + } + } + }, + "required" : true + }, + "responses" : { + "200" : { + "description" : "OK - the request has succeeded.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/WebhookSettingResponse" + }, + "examples" : { + "update-webhook-setting" : { + "summary" : "Successfully updated a webhook setting", + "description" : "Successfully updated a webhook setting", + "value" : { + "type" : "balance", + "id" : "BWHS00000000000000000000000001", + "target" : { + "type" : "balanceAccount", + "id" : "BA00000000000000000LIABLE" + }, + "currency" : "USD", + "status" : "active", + "conditions" : [ { + "balanceType" : "available", + "conditionType" : "lessThan", + "value" : 500000 + }, { + "balanceType" : "balance", + "conditionType" : "greaterThan", + "value" : 1000000 + } ] + } + }, + "deactivate-webhook-setting" : { + "summary" : "Successfully deactivated a webhook setting", + "description" : "Successfully deactivated a webhook setting", + "value" : { + "type" : "balance", + "id" : "BWHS00000000000000000000000001", + "target" : { + "type" : "balanceAccount", + "id" : "BA00000000000000000LIABLE" + }, + "currency" : "USD", + "status" : "inactive", + "conditions" : [ { + "balanceType" : "available", + "conditionType" : "lessThan", + "value" : 500000 + }, { + "balanceType" : "balance", + "conditionType" : "greaterThan", + "value" : 1000000 + } ] + } + } + } + } + } + }, + "400" : { + "description" : "Bad Request - a problem reading or understanding the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "401" : { + "description" : "Unauthorized - authentication required.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "403" : { + "description" : "Forbidden - insufficient permissions to process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "404" : { + "description" : "Not Found - the payment was not found", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "422" : { + "description" : "Unprocessable Entity - a request validation error.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + }, + "500" : { + "description" : "Internal Server Error - the server could not process the request.", + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/DefaultErrorResponseEntity" + } + } + } + } + }, + "x-sortIndex" : 2 + } + } + }, + "components" : { + "schemas" : { + "AULocalAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The bank account number, without separators or whitespace.", + "maxLength" : 9, + "minLength" : 5 + }, + "bsbCode" : { + "type" : "string", + "description" : "The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace.", + "maxLength" : 6, + "minLength" : 6 + }, + "type" : { + "type" : "string", + "default" : "auLocal", + "description" : "**auLocal**", + "enum" : [ "auLocal" ] + } + }, + "required" : [ "accountNumber", "bsbCode", "type" ] + }, + "AccountHolder" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "balancePlatform" : { + "type" : "string", + "description" : "The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms." + }, + "capabilities" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/AccountHolderCapability" + }, + "description" : "Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability." + }, + "contactDetails" : { + "$ref" : "#/components/schemas/ContactDetails", + "deprecated" : true, + "description" : "Contact details of the account holder." + }, + "description" : { + "type" : "string", + "description" : "Your description for the account holder.", + "maxLength" : 300 + }, + "id" : { + "type" : "string", + "description" : "The unique identifier of the account holder.", + "readOnly" : true + }, + "legalEntityId" : { + "type" : "string", + "description" : "The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder." + }, + "metadata" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + }, + "description" : "A set of key and value pairs for general use.\nThe keys do not have specific names and may be used for storing miscellaneous data as desired.\n> Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs." + }, + "migratedAccountHolderCode" : { + "type" : "string", + "description" : "The unique identifier of the migrated account holder in the classic integration.", + "readOnly" : true + }, + "primaryBalanceAccount" : { + "type" : "string", + "description" : "The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request." + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the account holder.", + "maxLength" : 150 + }, + "status" : { + "type" : "string", + "description" : "The status of the account holder.\n\nPossible values: \n\n * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. \n\n * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. \n\n* **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed.", + "enum" : [ "active", "closed", "suspended" ] + }, + "timeZone" : { + "type" : "string", + "description" : "The time zone of the account holder. For example, **Europe/Amsterdam**.\nDefaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)." + }, + "verificationDeadlines" : { + "type" : "array", + "description" : "List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.", + "items" : { + "$ref" : "#/components/schemas/VerificationDeadline" + }, + "readOnly" : true + } + }, + "required" : [ "id", "legalEntityId" ] + }, + "AccountHolderCapability" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "allowed" : { + "type" : "boolean", + "description" : "Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability.", + "readOnly" : true + }, + "allowedLevel" : { + "type" : "string", + "description" : "The capability level that is allowed for the account holder.\n\nPossible values: **notApplicable**, **low**, **medium**, **high**.", + "enum" : [ "high", "low", "medium", "notApplicable" ], + "readOnly" : true + }, + "allowedSettings" : { + "$ref" : "#/components/schemas/CapabilitySettings", + "description" : "A JSON object containing the settings that are allowed for the account holder.", + "readOnly" : true + }, + "enabled" : { + "type" : "boolean", + "description" : "Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder." + }, + "problems" : { + "type" : "array", + "description" : "Contains verification errors and the actions that you can take to resolve them.", + "items" : { + "$ref" : "#/components/schemas/CapabilityProblem" + }, + "readOnly" : true + }, + "requested" : { + "type" : "boolean", + "description" : "Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field." + }, + "requestedLevel" : { + "type" : "string", + "description" : "The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring.\n\nPossible values: **notApplicable**, **low**, **medium**, **high**.", + "enum" : [ "high", "low", "medium", "notApplicable" ] + }, + "requestedSettings" : { + "$ref" : "#/components/schemas/CapabilitySettings", + "description" : "A JSON object containing the settings that were requested for the account holder.", + "readOnly" : true + }, + "transferInstruments" : { + "type" : "array", + "description" : "Contains the status of the transfer instruments associated with this capability. ", + "items" : { + "$ref" : "#/components/schemas/AccountSupportingEntityCapability" + }, + "readOnly" : true + }, + "verificationStatus" : { + "type" : "string", + "description" : "The status of the verification checks for the capability.\n\nPossible values:\n\n* **pending**: Adyen is running the verification.\n\n* **invalid**: The verification failed. Check if the `errors` array contains more information.\n\n* **valid**: The verification has been successfully completed.\n\n* **rejected**: Adyen has verified the information, but found reasons to not allow the capability.\n", + "enum" : [ "invalid", "pending", "rejected", "valid" ], + "readOnly" : true + } + } + }, + "AccountHolderInfo" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "balancePlatform" : { + "type" : "string", + "description" : "The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms." + }, + "capabilities" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/AccountHolderCapability" + }, + "description" : "Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability." + }, + "contactDetails" : { + "$ref" : "#/components/schemas/ContactDetails", + "deprecated" : true, + "description" : "Contact details of the account holder." + }, + "description" : { + "type" : "string", + "description" : "Your description for the account holder.", + "maxLength" : 300 + }, + "legalEntityId" : { + "type" : "string", + "description" : "The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder." + }, + "metadata" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + }, + "description" : "A set of key and value pairs for general use.\nThe keys do not have specific names and may be used for storing miscellaneous data as desired.\n> Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs." + }, + "migratedAccountHolderCode" : { + "type" : "string", + "description" : "The unique identifier of the migrated account holder in the classic integration.", + "readOnly" : true + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the account holder.", + "maxLength" : 150 + }, + "timeZone" : { + "type" : "string", + "description" : "The time zone of the account holder. For example, **Europe/Amsterdam**.\nDefaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)." + } + }, + "required" : [ "legalEntityId" ] + }, + "AccountHolderUpdateRequest" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "balancePlatform" : { + "type" : "string", + "description" : "The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms." + }, + "capabilities" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/AccountHolderCapability" + }, + "description" : "Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability." + }, + "contactDetails" : { + "$ref" : "#/components/schemas/ContactDetails", + "deprecated" : true, + "description" : "Contact details of the account holder." + }, + "description" : { + "type" : "string", + "description" : "Your description for the account holder.", + "maxLength" : 300 + }, + "metadata" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + }, + "description" : "A set of key and value pairs for general use.\nThe keys do not have specific names and may be used for storing miscellaneous data as desired.\n> Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs." + }, + "migratedAccountHolderCode" : { + "type" : "string", + "description" : "The unique identifier of the migrated account holder in the classic integration.", + "readOnly" : true + }, + "primaryBalanceAccount" : { + "type" : "string", + "description" : "The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request." + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the account holder.", + "maxLength" : 150 + }, + "status" : { + "type" : "string", + "description" : "The status of the account holder.\n\nPossible values: \n\n * **active**: The account holder is active and allowed to use its capabilities. This is the initial status for account holders and balance accounts. You can change this status to **suspended** or **closed**. \n\n * **suspended**: The account holder is temporarily disabled and payouts are blocked. You can change this status to **active** or **closed**. \n\n* **closed**: The account holder and all of its capabilities are permanently disabled. This is a final status and cannot be changed.", + "enum" : [ "active", "closed", "suspended" ] + }, + "timeZone" : { + "type" : "string", + "description" : "The time zone of the account holder. For example, **Europe/Amsterdam**.\nDefaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)." + }, + "verificationDeadlines" : { + "type" : "array", + "description" : "List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved.", + "items" : { + "$ref" : "#/components/schemas/VerificationDeadline" + }, + "readOnly" : true + } + } + }, + "AccountSupportingEntityCapability" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "allowed" : { + "type" : "boolean", + "description" : "Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability.", + "readOnly" : true + }, + "allowedLevel" : { + "type" : "string", + "description" : "The capability level that is allowed for the account holder.\n\nPossible values: **notApplicable**, **low**, **medium**, **high**.", + "enum" : [ "high", "low", "medium", "notApplicable" ], + "readOnly" : true + }, + "enabled" : { + "type" : "boolean", + "description" : "Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder." + }, + "id" : { + "type" : "string", + "description" : "The ID of the supporting entity.", + "readOnly" : true + }, + "requested" : { + "type" : "boolean", + "description" : "Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field." + }, + "requestedLevel" : { + "type" : "string", + "description" : "The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring.\n\nPossible values: **notApplicable**, **low**, **medium**, **high**.", + "enum" : [ "high", "low", "medium", "notApplicable" ] + }, + "verificationStatus" : { + "type" : "string", + "description" : "The status of the verification checks for the supporting entity capability.\n\nPossible values:\n\n* **pending**: Adyen is running the verification.\n\n* **invalid**: The verification failed. Check if the `errors` array contains more information.\n\n* **valid**: The verification has been successfully completed.\n\n* **rejected**: Adyen has verified the information, but found reasons to not allow the capability.\n", + "enum" : [ "invalid", "pending", "rejected", "valid" ], + "readOnly" : true + } + } + }, + "ActiveNetworkTokensRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "integer", + "format" : "int32", + "description" : "The number of tokens." + } + }, + "required" : [ "operation" ] + }, + "AdditionalBankIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "code" : { + "type" : "string", + "description" : "The value of the additional bank identification." + }, + "type" : { + "type" : "string", + "description" : "The type of additional bank identification, depending on the country.\n\nPossible values:\n\n * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces\n * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces.", + "enum" : [ "gbSortCode", "usRoutingNumber" ] + } + } + }, + "Address" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "city" : { + "type" : "string", + "description" : "The name of the city. Maximum length: 3000 characters.", + "maxLength" : 3000 + }, + "country" : { + "type" : "string", + "description" : "The two-character ISO-3166-1 alpha-2 country code. For example, **US**.\n> If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`." + }, + "houseNumberOrName" : { + "type" : "string", + "description" : "The number or name of the house. Maximum length: 3000 characters.", + "maxLength" : 3000 + }, + "postalCode" : { + "type" : "string", + "description" : "A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries." + }, + "stateOrProvince" : { + "type" : "string", + "description" : "The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada.\n> Required for the US and Canada." + }, + "street" : { + "type" : "string", + "description" : "The name of the street. Maximum length: 3000 characters.\n> The house number should not be included in this field; it should be separately provided via `houseNumberOrName`.", + "maxLength" : 3000 + } + }, + "required" : [ "city", "country", "houseNumberOrName", "postalCode", "street" ] + }, + "AddressRequirement" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "description" : { + "type" : "string", + "description" : "Specifies the required address related fields for a particular route." + }, + "requiredAddressFields" : { + "type" : "array", + "description" : "List of address fields.", + "items" : { + "type" : "string", + "enum" : [ "city", "country", "line1", "postalCode", "stateOrProvince" ] + } + }, + "type" : { + "type" : "string", + "default" : "addressRequirement", + "description" : "**addressRequirement**", + "enum" : [ "addressRequirement" ] + } + }, + "required" : [ "type" ] + }, + "Amount" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "currency" : { + "type" : "string", + "description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).", + "maxLength" : 3, + "minLength" : 3 + }, + "value" : { + "type" : "integer", + "format" : "int64", + "description" : "The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units)." + } + }, + "required" : [ "currency", "value" ] + }, + "AmountMinMaxRequirement" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "description" : { + "type" : "string", + "description" : "Specifies the eligible amounts for a particular route." + }, + "max" : { + "type" : "integer", + "format" : "int64", + "description" : "Maximum amount." + }, + "min" : { + "type" : "integer", + "format" : "int64", + "description" : "Minimum amount." + }, + "type" : { + "type" : "string", + "default" : "amountMinMaxRequirement", + "description" : "**amountMinMaxRequirement**", + "enum" : [ "amountMinMaxRequirement" ] + } + }, + "required" : [ "type" ] + }, + "AmountNonZeroDecimalsRequirement" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "description" : { + "type" : "string", + "description" : "Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers." + }, + "type" : { + "type" : "string", + "default" : "amountNonZeroDecimalsRequirement", + "description" : "**amountNonZeroDecimalsRequirement**", + "enum" : [ "amountNonZeroDecimalsRequirement" ] + } + }, + "required" : [ "type" ] + }, + "AssociationDelegatedAuthenticationData" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "sdkOutput" : { + "type" : "string", + "description" : "A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK.", + "maxLength" : 20000 + } + }, + "required" : [ "sdkOutput" ] + }, + "AssociationFinaliseRequest" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "ids" : { + "type" : "array", + "description" : "The list of unique identifiers of the resources that you are associating with the SCA device.\n\nMaximum: 5 strings.", + "items" : { + "type" : "string" + }, + "maxLength" : 5 + }, + "strongCustomerAuthentication" : { + "$ref" : "#/components/schemas/AssociationDelegatedAuthenticationData", + "description" : "Contains authentication information required to associate the resource with the SCA device." + }, + "type" : { + "type" : "string", + "description" : "The type of resource that you are associating with the SCA device.\n\nPossible value: **PaymentInstrument**", + "enum" : [ "PaymentInstrument" ] + } + }, + "required" : [ "ids", "strongCustomerAuthentication", "type" ] + }, + "AssociationFinaliseResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "deviceId" : { + "type" : "string", + "description" : "The unique identifier of the SCA device you associated with a resource." + }, + "ids" : { + "type" : "array", + "description" : "The list of unique identifiers of the resources that you associated with the SCA device.", + "items" : { + "type" : "string" + } + }, + "type" : { + "type" : "string", + "description" : "The type of resource that you associated with the SCA device.", + "enum" : [ "PAYMENT_INSTRUMENT" ] + } + }, + "required" : [ "type" ] + }, + "AssociationInitiateRequest" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "ids" : { + "type" : "array", + "description" : "The list of unique identifiers of the resources that you are associating with the SCA device.\n\nMaximum: 5 strings.", + "items" : { + "type" : "string" + }, + "maxLength" : 5 + }, + "type" : { + "type" : "string", + "description" : "The type of resource that you are associating with the SCA device.\n\nPossible value: **PaymentInstrument**", + "enum" : [ "PaymentInstrument" ] + } + }, + "required" : [ "ids", "type" ] + }, + "AssociationInitiateResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "sdkInput" : { + "type" : "string", + "description" : "A string that you must pass to the authentication SDK to continue with the association process.", + "maxLength" : 20000 + } + } + }, + "Authentication" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "email" : { + "type" : "string", + "description" : "The email address where the one-time password (OTP) is sent." + }, + "password" : { + "type" : "string", + "description" : "The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters.\n\n* Characters between **a-z**, **A-Z**, and **0-9**\n\n* Special characters: **äöüßÄÖÜ+-*/ç%()=?!~#'\",;:$&àùòâôûáúó**", + "maxLength" : 30, + "minLength" : 1 + }, + "phone" : { + "$ref" : "#/components/schemas/Phone", + "description" : "The phone number where the one-time password (OTP) is sent.\n\nThis object must have:\n\n* A `type` set to **mobile**.\n\n* A `number` with a valid country code.\n\n* A `number` with more than 4 digits, excluding the country code.\n\n>Make sure to verify that the card user owns the phone number." + } + } + }, + "BRLocalAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The bank account number, without separators or whitespace.", + "maxLength" : 10, + "minLength" : 1 + }, + "bankCode" : { + "type" : "string", + "description" : "The 3-digit bank code, with leading zeros.", + "maxLength" : 3, + "minLength" : 3 + }, + "branchNumber" : { + "type" : "string", + "description" : "The bank account branch number, without separators or whitespace.", + "maxLength" : 4, + "minLength" : 1 + }, + "ispb" : { + "type" : "string", + "description" : "The 8-digit ISPB, with leading zeros.", + "maxLength" : 8, + "minLength" : 8 + }, + "type" : { + "type" : "string", + "default" : "brLocal", + "description" : "**brLocal**", + "enum" : [ "brLocal" ] + } + }, + "required" : [ "accountNumber", "bankCode", "branchNumber", "type" ] + }, + "Balance" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "available" : { + "type" : "integer", + "format" : "int64", + "description" : "The balance available for use." + }, + "balance" : { + "type" : "integer", + "format" : "int64", + "description" : "The sum of the transactions that have already been settled." + }, + "currency" : { + "type" : "string", + "description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance." + }, + "pending" : { + "type" : "integer", + "format" : "int64", + "description" : "The sum of the transactions that will be settled in the future." + }, + "reserved" : { + "type" : "integer", + "format" : "int64", + "description" : "The balance currently held in reserve." + } + }, + "required" : [ "available", "balance", "currency", "reserved" ] + }, + "BalanceAccount" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountHolderId" : { + "type" : "string", + "description" : "The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account." + }, + "balances" : { + "type" : "array", + "description" : "List of balances with the amount and currency.", + "items" : { + "$ref" : "#/components/schemas/Balance" + } + }, + "defaultCurrencyCode" : { + "type" : "string", + "description" : "The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account.\nThe default value is **EUR**.\n> After a balance account is created, you cannot change its default currency." + }, + "description" : { + "type" : "string", + "description" : "A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder.", + "maxLength" : 300 + }, + "id" : { + "type" : "string", + "description" : "The unique identifier of the balance account." + }, + "metadata" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + }, + "description" : "A set of key and value pairs for general use.\nThe keys do not have specific names and may be used for storing miscellaneous data as desired.\n> Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs." + }, + "migratedAccountCode" : { + "type" : "string", + "description" : "The unique identifier of the account of the migrated account holder in the classic integration.", + "readOnly" : true + }, + "platformPaymentConfiguration" : { + "$ref" : "#/components/schemas/PlatformPaymentConfiguration", + "description" : "Contains key-value pairs to the configure the settlement model in a balance account." + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the balance account, maximum 150 characters.", + "maxLength" : 150 + }, + "status" : { + "type" : "string", + "description" : "The status of the balance account, set to **active** by default. \n", + "enum" : [ "active", "closed", "inactive", "suspended" ] + }, + "timeZone" : { + "type" : "string", + "description" : "The time zone of the balance account. For example, **Europe/Amsterdam**.\nDefaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)." + } + }, + "required" : [ "accountHolderId", "id" ] + }, + "BalanceAccountBase" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountHolderId" : { + "type" : "string", + "description" : "The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account." + }, + "defaultCurrencyCode" : { + "type" : "string", + "description" : "The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account.\nThe default value is **EUR**.\n> After a balance account is created, you cannot change its default currency." + }, + "description" : { + "type" : "string", + "description" : "A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder.", + "maxLength" : 300 + }, + "id" : { + "type" : "string", + "description" : "The unique identifier of the balance account." + }, + "metadata" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + }, + "description" : "A set of key and value pairs for general use.\nThe keys do not have specific names and may be used for storing miscellaneous data as desired.\n> Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs." + }, + "migratedAccountCode" : { + "type" : "string", + "description" : "The unique identifier of the account of the migrated account holder in the classic integration.", + "readOnly" : true + }, + "platformPaymentConfiguration" : { + "$ref" : "#/components/schemas/PlatformPaymentConfiguration", + "description" : "Contains key-value pairs to the configure the settlement model in a balance account." + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the balance account, maximum 150 characters.", + "maxLength" : 150 + }, + "status" : { + "type" : "string", + "description" : "The status of the balance account, set to **active** by default. \n", + "enum" : [ "active", "closed", "inactive", "suspended" ] + }, + "timeZone" : { + "type" : "string", + "description" : "The time zone of the balance account. For example, **Europe/Amsterdam**.\nDefaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)." + } + }, + "required" : [ "accountHolderId", "id" ] + }, + "BalanceAccountInfo" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountHolderId" : { + "type" : "string", + "description" : "The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account." + }, + "defaultCurrencyCode" : { + "type" : "string", + "description" : "The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account.\nThe default value is **EUR**.\n> After a balance account is created, you cannot change its default currency." + }, + "description" : { + "type" : "string", + "description" : "A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder.", + "maxLength" : 300 + }, + "metadata" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + }, + "description" : "A set of key and value pairs for general use.\nThe keys do not have specific names and may be used for storing miscellaneous data as desired.\n> Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs." + }, + "migratedAccountCode" : { + "type" : "string", + "description" : "The unique identifier of the account of the migrated account holder in the classic integration.", + "readOnly" : true + }, + "platformPaymentConfiguration" : { + "$ref" : "#/components/schemas/PlatformPaymentConfiguration", + "description" : "Contains key-value pairs to the configure the settlement model in a balance account." + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the balance account, maximum 150 characters.", + "maxLength" : 150 + }, + "timeZone" : { + "type" : "string", + "description" : "The time zone of the balance account. For example, **Europe/Amsterdam**.\nDefaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)." + } + }, + "required" : [ "accountHolderId" ] + }, + "BalanceAccountUpdateRequest" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountHolderId" : { + "type" : "string", + "description" : "The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account." + }, + "description" : { + "type" : "string", + "description" : "A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder.", + "maxLength" : 300 + }, + "metadata" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + }, + "description" : "A set of key and value pairs for general use.\nThe keys do not have specific names and may be used for storing miscellaneous data as desired.\n> Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs." + }, + "platformPaymentConfiguration" : { + "$ref" : "#/components/schemas/PlatformPaymentConfiguration", + "description" : "Contains key-value pairs to the configure the settlement model in a balance account." + }, + "reference" : { + "type" : "string", + "description" : "Your reference to the balance account.", + "maxLength" : 150 + }, + "status" : { + "type" : "string", + "description" : "The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**.\n\nPossible values: **active**, **closed**, **suspended**.", + "enum" : [ "active", "closed", "inactive", "suspended" ] + }, + "timeZone" : { + "type" : "string", + "description" : "The time zone of the balance account. For example, **Europe/Amsterdam**.\nDefaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)." + } + } + }, + "BalancePlatform" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "description" : { + "type" : "string", + "description" : "Your description of the balance platform.", + "maxLength" : 300 + }, + "id" : { + "type" : "string", + "description" : "The unique identifier of the balance platform." + }, + "status" : { + "type" : "string", + "description" : "The status of the balance platform.\n\nPossible values: **Active**, **Inactive**, **Closed**, **Suspended**." + } + }, + "required" : [ "id" ] + }, + "BalanceSweepConfigurationsResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "hasNext" : { + "type" : "boolean", + "description" : "Indicates whether there are more items on the next page." + }, + "hasPrevious" : { + "type" : "boolean", + "description" : "Indicates whether there are more items on the previous page." + }, + "sweeps" : { + "type" : "array", + "description" : "List of sweeps associated with the balance account.", + "items" : { + "$ref" : "#/components/schemas/SweepConfigurationV2" + } + } + }, + "required" : [ "hasNext", "hasPrevious", "sweeps" ] + }, + "BankAccount" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountIdentification" : { + "description" : "Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer.", + "oneOf" : [ { + "$ref" : "#/components/schemas/AULocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/BRLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/CALocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/CZLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/DKLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/HKLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/HULocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/IbanAccountIdentification" + }, { + "$ref" : "#/components/schemas/NOLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/NZLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/NumberAndBicAccountIdentification" + }, { + "$ref" : "#/components/schemas/PLLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/SELocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/SGLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/UKLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/USLocalAccountIdentification" + } ] + } + }, + "required" : [ "accountIdentification" ] + }, + "BankAccountDetails" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The bank account number, without separators or whitespace." + }, + "accountType" : { + "type" : "string", + "default" : "checking", + "description" : "The bank account type.\n\nPossible values: **checking** or **savings**. Defaults to **checking**." + }, + "branchNumber" : { + "type" : "string", + "description" : "The bank account branch number, without separators or whitespace" + }, + "formFactor" : { + "type" : "string", + "default" : "physical", + "description" : "Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. \n\nAdyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL." + }, + "iban" : { + "type" : "string", + "description" : "The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard." + }, + "routingNumber" : { + "type" : "string", + "description" : "The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace." + }, + "sortCode" : { + "type" : "string", + "description" : "The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace." + }, + "type" : { + "type" : "string", + "default" : "iban", + "description" : "**iban** or **usLocal** or **ukLocal**" + } + }, + "required" : [ "type" ] + }, + "BankAccountIdentificationTypeRequirement" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "bankAccountIdentificationTypes" : { + "type" : "array", + "description" : "List of bank account identification types: eg.; [iban , numberAndBic]", + "items" : { + "type" : "string", + "enum" : [ "auLocal", "brLocal", "caLocal", "czLocal", "dkLocal", "hkLocal", "huLocal", "iban", "legacy", "noLocal", "numberAndBic", "nzLocal", "plLocal", "seLocal", "sgLocal", "ukLocal", "usLocal" ] + } + }, + "description" : { + "type" : "string", + "description" : "Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer." + }, + "type" : { + "type" : "string", + "default" : "bankAccountIdentificationTypeRequirement", + "description" : "**bankAccountIdentificationTypeRequirement**", + "enum" : [ "bankAccountIdentificationTypeRequirement" ] + } + }, + "required" : [ "type" ] + }, + "BankAccountIdentificationValidationRequest" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountIdentification" : { + "description" : "Bank account identification.", + "oneOf" : [ { + "$ref" : "#/components/schemas/AULocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/BRLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/CALocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/CZLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/DKLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/HKLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/HULocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/IbanAccountIdentification" + }, { + "$ref" : "#/components/schemas/NOLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/NZLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/NumberAndBicAccountIdentification" + }, { + "$ref" : "#/components/schemas/PLLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/SELocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/SGLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/UKLocalAccountIdentification" + }, { + "$ref" : "#/components/schemas/USLocalAccountIdentification" + } ] + } + }, + "required" : [ "accountIdentification" ] + }, + "BankAccountModel" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "formFactor" : { + "type" : "string", + "default" : "physical", + "description" : "Business accounts with a `formFactor` value of **physical** are business accounts issued under the central bank of that country. The default value is **physical** for NL, US, and UK business accounts. \n\nAdyen creates a local IBAN for business accounts when the `formFactor` value is set to **virtual**. The local IBANs that are supported are for DE and FR, which reference a physical NL account, with funds being routed through the central bank of NL.", + "enum" : [ "physical", "unknown", "virtual" ], + "nullable" : true + } + } + }, + "BankIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "country" : { + "type" : "string", + "description" : "Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code." + }, + "identification" : { + "type" : "string", + "description" : "The bank identification code." + }, + "identificationType" : { + "type" : "string", + "description" : "The type of the identification.\n\nPossible values: **iban**, **routingNumber**, **sortCode**, **bic**.", + "enum" : [ "bic", "iban", "routingNumber", "sortCode" ] + } + } + }, + "BrandVariantsRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "array", + "description" : "List of card brand variants.\n\nPossible values: \n\n- **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro**\n\n - **visa**, **visacredit**, **visadebit**, **visaprepaid**.\n\nYou can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**.\n\n", + "items" : { + "type" : "string" + } + } + }, + "required" : [ "operation" ] + }, + "BulkAddress" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "city" : { + "type" : "string", + "description" : "The name of the city." + }, + "company" : { + "type" : "string", + "description" : "The name of the company." + }, + "country" : { + "type" : "string", + "description" : "The two-character ISO-3166-1 alpha-2 country code. For example, **US**." + }, + "email" : { + "type" : "string", + "description" : "The email address." + }, + "houseNumberOrName" : { + "type" : "string", + "description" : "The house number or name." + }, + "mobile" : { + "type" : "string", + "description" : "The full telephone number." + }, + "postalCode" : { + "type" : "string", + "description" : "The postal code.\n\nMaximum length:\n\n* 5 digits for addresses in the US.\n\n* 10 characters for all other countries." + }, + "stateOrProvince" : { + "type" : "string", + "description" : "The two-letter ISO 3166-2 state or province code.\n\nMaximum length: 2 characters for addresses in the US." + }, + "street" : { + "type" : "string", + "description" : "The streetname of the house." + } + }, + "required" : [ "country" ] + }, + "CALocalAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The 5- to 12-digit bank account number, without separators or whitespace.", + "maxLength" : 12, + "minLength" : 5 + }, + "accountType" : { + "type" : "string", + "default" : "checking", + "description" : "The bank account type.\n\nPossible values: **checking** or **savings**. Defaults to **checking**.", + "enum" : [ "checking", "savings" ] + }, + "institutionNumber" : { + "type" : "string", + "description" : "The 3-digit institution number, without separators or whitespace.", + "maxLength" : 3, + "minLength" : 3 + }, + "transitNumber" : { + "type" : "string", + "description" : "The 5-digit transit number, without separators or whitespace.", + "maxLength" : 5, + "minLength" : 5 + }, + "type" : { + "type" : "string", + "default" : "caLocal", + "description" : "**caLocal**", + "enum" : [ "caLocal" ] + } + }, + "required" : [ "accountNumber", "institutionNumber", "transitNumber", "type" ] + }, + "CZLocalAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The 2- to 16-digit bank account number (Číslo účtu) in the following format:\n\n- The optional prefix (předčíslí).\n\n- The required second part (základní část) which must be at least two non-zero digits.\n\nExamples:\n\n- **19-123457** (with prefix)\n\n- **123457** (without prefix)\n\n- **000019-0000123457** (with prefix, normalized)\n\n- **000000-0000123457** (without prefix, normalized)", + "maxLength" : 17, + "minLength" : 2 + }, + "bankCode" : { + "type" : "string", + "description" : "The 4-digit bank code (Kód banky), without separators or whitespace.", + "maxLength" : 4, + "minLength" : 4 + }, + "type" : { + "type" : "string", + "default" : "czLocal", + "description" : "**czLocal**", + "enum" : [ "czLocal" ] + } + }, + "required" : [ "accountNumber", "bankCode", "type" ] + }, + "CapabilityProblem" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "entity" : { + "$ref" : "#/components/schemas/CapabilityProblemEntity", + "description" : "Contains the type of the entity and the corresponding ID." + }, + "verificationErrors" : { + "type" : "array", + "description" : "Contains information about the verification error.", + "items" : { + "$ref" : "#/components/schemas/VerificationError" + } + } + } + }, + "CapabilityProblemEntity" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "documents" : { + "type" : "array", + "description" : "List of document IDs to which the verification errors related to the capabilities correspond to.", + "items" : { + "type" : "string" + } + }, + "id" : { + "type" : "string", + "description" : "The ID of the entity." + }, + "owner" : { + "$ref" : "#/components/schemas/CapabilityProblemEntity-recursive", + "description" : "Contains details about the owner of the entity that has an error." + }, + "type" : { + "type" : "string", + "description" : "Type of entity. \n\nPossible values: **LegalEntity**, **BankAccount**, **Document**.", + "enum" : [ "BankAccount", "Document", "LegalEntity" ] + } + } + }, + "CapabilityProblemEntity-recursive" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "documents" : { + "type" : "array", + "description" : "List of document IDs to which the verification errors related to the capabilities correspond to.", + "items" : { + "type" : "string" + } + }, + "id" : { + "type" : "string", + "description" : "The ID of the entity." + }, + "type" : { + "type" : "string", + "description" : "Type of entity. \n\nPossible values: **LegalEntity**, **BankAccount**, **Document**.", + "enum" : [ "BankAccount", "Document", "LegalEntity" ] + } + } + }, + "CapabilitySettings" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "amountPerIndustry" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/Amount" + }, + "description" : "" + }, + "authorizedCardUsers" : { + "type" : "boolean", + "description" : "" + }, + "fundingSource" : { + "type" : "array", + "description" : "", + "items" : { + "type" : "string", + "enum" : [ "credit", "debit", "prepaid" ] + } + }, + "interval" : { + "type" : "string", + "description" : "", + "enum" : [ "daily", "monthly", "weekly" ] + }, + "maxAmount" : { + "$ref" : "#/components/schemas/Amount", + "description" : "" + } + } + }, + "CapitalBalance" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "currency" : { + "type" : "string", + "description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes)." + }, + "fee" : { + "type" : "integer", + "format" : "int64", + "description" : "Fee amount." + }, + "principal" : { + "type" : "integer", + "format" : "int64", + "description" : "Principal amount." + }, + "total" : { + "type" : "integer", + "format" : "int64", + "description" : "Total amount. A sum of principal amount and fee amount." + } + }, + "required" : [ "currency", "fee", "principal", "total" ] + }, + "CapitalGrantAccount" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "balances" : { + "type" : "array", + "description" : "The balances of the grant account.", + "items" : { + "$ref" : "#/components/schemas/CapitalBalance" + } + }, + "fundingBalanceAccountId" : { + "type" : "string", + "description" : "The unique identifier of the balance account used to fund the grant." + }, + "id" : { + "type" : "string", + "description" : "The identifier of the grant account." + }, + "limits" : { + "type" : "array", + "description" : "The limits of the grant account.", + "items" : { + "$ref" : "#/components/schemas/GrantLimit" + } + } + } + }, + "Card" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "authentication" : { + "$ref" : "#/components/schemas/Authentication", + "description" : "Contains the card user's password and mobile phone number. This is required when you issue cards that can be used to make online payments within the EEA and the UK, or can be added to digital wallets. Refer to [3D Secure and digital wallets](https://docs.adyen.com/issuing/3d-secure-and-wallets) for more information." + }, + "bin" : { + "type" : "string", + "description" : "The bank identification number (BIN) of the card number." + }, + "brand" : { + "type" : "string", + "description" : "The brand of the physical or the virtual card.\nPossible values: **visa**, **mc**." + }, + "brandVariant" : { + "type" : "string", + "description" : "The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**.\n>Reach out to your Adyen contact to get the values relevant for your integration." + }, + "cardholderName" : { + "type" : "string", + "description" : "The name of the cardholder.\n Maximum length: 26 characters.", + "maxLength" : 26 + }, + "configuration" : { + "$ref" : "#/components/schemas/CardConfiguration", + "description" : "Settings required when creating a physical or a virtual card. \n\nReach out to your Adyen contact to get the values that you can send in this object." + }, + "cvc" : { + "type" : "string", + "description" : "The CVC2 value of the card.\n> The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards." + }, + "deliveryContact" : { + "$ref" : "#/components/schemas/DeliveryContact", + "description" : "The delivery contact (name and address) for physical card delivery.", + "x-addedInVersion" : "2" + }, + "expiration" : { + "$ref" : "#/components/schemas/Expiry", + "description" : "The expiration date of the card." + }, + "formFactor" : { + "type" : "string", + "description" : "The form factor of the card.\nPossible values: **virtual**, **physical**.", + "enum" : [ "physical", "unknown", "virtual" ] + }, + "lastFour" : { + "type" : "string", + "description" : "Last last four digits of the card number." + }, + "number" : { + "type" : "string", + "description" : "The primary account number (PAN) of the card.\n> The PAN is masked by default and returned only for single-use virtual cards.", + "readOnly" : true + }, + "threeDSecure" : { + "type" : "string", + "description" : "Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**.\n>Reach out to your Adyen contact to get the values relevant for your integration." + } + }, + "required" : [ "brand", "brandVariant", "cardholderName", "formFactor", "number" ] + }, + "CardConfiguration" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "activation" : { + "type" : "string", + "description" : "Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions." + }, + "activationUrl" : { + "type" : "string", + "description" : "Your app's URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. \n\nMaximum length: 255 characters.", + "maxLength" : 255 + }, + "bulkAddress" : { + "$ref" : "#/components/schemas/BulkAddress", + "description" : "Overrides the shipment bulk address defined in the `configurationProfileId`." + }, + "cardImageId" : { + "type" : "string", + "description" : "The ID of the card image. This is the image that will be printed on the full front of the card." + }, + "carrier" : { + "type" : "string", + "description" : "Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached." + }, + "carrierImageId" : { + "type" : "string", + "description" : "The ID of the carrier image. This is the image that will printed on the letter to which the card is attached." + }, + "configurationProfileId" : { + "type" : "string", + "description" : "The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them.\n\nFor example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile." + }, + "currency" : { + "type" : "string", + "description" : "The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**." + }, + "envelope" : { + "type" : "string", + "description" : "Overrides the envelope design ID defined in the `configurationProfileId`. " + }, + "insert" : { + "type" : "string", + "description" : "Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card." + }, + "language" : { + "type" : "string", + "description" : "The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**." + }, + "logoImageId" : { + "type" : "string", + "description" : "The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner." + }, + "pinMailer" : { + "type" : "string", + "description" : "Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed." + }, + "shipmentMethod" : { + "type" : "string", + "description" : "Overrides the logistics company defined in the `configurationProfileId`." + } + }, + "required" : [ "configurationProfileId" ] + }, + "CardInfo" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "authentication" : { + "$ref" : "#/components/schemas/Authentication", + "description" : "Contains the card user's password and mobile phone number. This is required when you issue cards that can be used to make online payments within the EEA and the UK, or can be added to digital wallets. Refer to [3D Secure and digital wallets](https://docs.adyen.com/issuing/3d-secure-and-wallets) for more information." + }, + "brand" : { + "type" : "string", + "description" : "The brand of the physical or the virtual card.\nPossible values: **visa**, **mc**." + }, + "brandVariant" : { + "type" : "string", + "description" : "The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**.\n>Reach out to your Adyen contact to get the values relevant for your integration." + }, + "cardholderName" : { + "type" : "string", + "description" : "The name of the cardholder.\n Maximum length: 26 characters.", + "maxLength" : 26 + }, + "configuration" : { + "$ref" : "#/components/schemas/CardConfiguration", + "description" : "Settings required when creating a physical or a virtual card. \n\nReach out to your Adyen contact to get the values that you can send in this object." + }, + "deliveryContact" : { + "$ref" : "#/components/schemas/DeliveryContact", + "description" : "The delivery contact (name and address) for physical card delivery.", + "x-addedInVersion" : "2" + }, + "formFactor" : { + "type" : "string", + "description" : "The form factor of the card.\nPossible values: **virtual**, **physical**.", + "enum" : [ "physical", "unknown", "virtual" ] + }, + "threeDSecure" : { + "type" : "string", + "description" : "Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**.\n>Reach out to your Adyen contact to get the values relevant for your integration." + } + }, + "required" : [ "brand", "brandVariant", "cardholderName", "formFactor" ] + }, + "CardOrder" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "beginDate" : { + "type" : "string", + "format" : "date-time", + "description" : "The date when the card order is created." + }, + "cardManufacturingProfileId" : { + "type" : "string", + "description" : "The unique identifier of the card manufacturer profile." + }, + "closedDate" : { + "type" : "string", + "format" : "date-time", + "description" : "The date when the card order processing ends." + }, + "endDate" : { + "type" : "string", + "format" : "date-time", + "description" : "The date when you manually closed the card order.\n\nCard orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`." + }, + "id" : { + "type" : "string", + "description" : "The unique identifier of the card order." + }, + "lockDate" : { + "type" : "string", + "format" : "date-time", + "description" : "The date when the card order processing begins." + }, + "serviceCenter" : { + "type" : "string", + "description" : "The service center." + }, + "status" : { + "type" : "string", + "description" : "The status of the card order.\n\nPossible values: **Open**, **Closed**.", + "enum" : [ "closed", "open" ] + } + } + }, + "CardOrderItem" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "balancePlatform" : { + "type" : "string", + "description" : "The unique identifier of the balance platform." + }, + "card" : { + "$ref" : "#/components/schemas/CardOrderItemDeliveryStatus", + "description" : "The status of the card delivery.\n\nPossible values: **created**, **rejected**, **processing**, **produced**, **shipped**, **delivered**, **notApplicable**, **unknown**. " + }, + "cardOrderItemId" : { + "type" : "string", + "description" : "The unique identifier of the card order item." + }, + "creationDate" : { + "type" : "string", + "format" : "date-time", + "description" : "The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**." + }, + "id" : { + "type" : "string", + "description" : "The ID of the resource.", + "readOnly" : true + }, + "paymentInstrumentId" : { + "type" : "string", + "description" : "The unique identifier of the payment instrument related to the card order item." + }, + "pin" : { + "$ref" : "#/components/schemas/CardOrderItemDeliveryStatus", + "description" : "Contains information about the status of the PIN delivery." + }, + "shippingMethod" : { + "type" : "string", + "description" : "The shipping method used to deliver the card or the PIN." + } + } + }, + "CardOrderItemDeliveryStatus" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "errorMessage" : { + "type" : "string", + "description" : "An error message." + }, + "status" : { + "type" : "string", + "description" : "The status of the PIN delivery.", + "enum" : [ "created", "delivered", "notApplicable", "processing", "produced", "rejected", "shipped", "unknown" ] + }, + "trackingNumber" : { + "type" : "string", + "description" : "The tracking number of the PIN delivery." + } + } + }, + "ContactDetails" : { + "type" : "object", + "additionalProperties" : false, + "deprecated" : true, + "properties" : { + "address" : { + "$ref" : "#/components/schemas/Address", + "description" : "The address of the account holder." + }, + "email" : { + "type" : "string", + "description" : "The email address of the account holder." + }, + "phone" : { + "$ref" : "#/components/schemas/Phone", + "description" : "The phone number of the account holder." + }, + "webAddress" : { + "type" : "string", + "description" : "The URL of the account holder's website." + } + }, + "required" : [ "address", "email", "phone" ] + }, + "Counterparty" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "bankAccount" : { + "$ref" : "#/components/schemas/BankAccount", + "description" : "Contains information about the bank account." + }, + "transferInstrumentId" : { + "type" : "string", + "description" : "The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id)." + } + } + }, + "CounterpartyBankRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "array", + "description" : "The list of counterparty bank institutions to be evaluated.", + "items" : { + "$ref" : "#/components/schemas/BankIdentification" + } + } + }, + "required" : [ "operation" ] + }, + "CounterpartyTypesRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "array", + "description" : "The list of counterparty types to be evaluated.", + "items" : { + "type" : "string", + "enum" : [ "balanceAccount", "bankAccount", "card", "transferInstrument" ] + } + } + }, + "required" : [ "operation" ] + }, + "CountriesRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "array", + "description" : "List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes.", + "items" : { + "type" : "string" + } + } + }, + "required" : [ "operation" ] + }, + "CreateSweepConfigurationV2" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "category" : { + "type" : "string", + "description" : "The type of transfer that results from the sweep.\n\nPossible values:\n\n - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).\n\n- **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform.\n\nRequired when setting `priorities`.", + "enum" : [ "bank", "internal", "platformPayment" ], + "x-addedInVersion" : "2" + }, + "counterparty" : { + "$ref" : "#/components/schemas/SweepCounterparty", + "description" : "The destination or the source of the funds, depending on the sweep `type`.\n\nEither a `balanceAccountId`, `transferInstrumentId`, or `merchantAccount` is required." + }, + "currency" : { + "type" : "string", + "description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**.\n\nThe sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances)." + }, + "description" : { + "type" : "string", + "description" : "The message that will be used in the sweep transfer's description body with a maximum length of 140 characters.\n\nIf the message is longer after replacing placeholders, the message will be cut off at 140 characters." + }, + "priorities" : { + "type" : "array", + "description" : "The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities.\n\nPossible values:\n\n* **regular**: for normal, low-value transactions.\n\n* **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.\n\n* **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.\n\n* **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).\n\n* **crossBorder**: for high-value transfers to a recipient in a different country.\n\n* **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).\n\nSet `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).", + "items" : { + "type" : "string", + "enum" : [ "crossBorder", "fast", "instant", "internal", "regular", "wire" ] + }, + "x-addedInVersion" : "2" + }, + "reason" : { + "type" : "string", + "description" : "The reason for disabling the sweep.", + "enum" : [ "accountHierarchyNotActive", "amountLimitExceeded", "approved", "balanceAccountTemporarilyBlockedByTransactionRule", "counterpartyAccountBlocked", "counterpartyAccountClosed", "counterpartyAccountNotFound", "counterpartyAddressRequired", "counterpartyBankTimedOut", "counterpartyBankUnavailable", "declined", "declinedByTransactionRule", "directDebitNotSupported", "error", "notEnoughBalance", "pending", "pendingApproval", "pendingExecution", "refusedByCounterpartyBank", "refusedByCustomer", "routeNotFound", "scaFailed", "transferInstrumentDoesNotExist", "unknown" ], + "readOnly" : true + }, + "reasonDetail" : { + "type" : "string", + "description" : "The human readable reason for disabling the sweep.", + "readOnly" : true + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the sweep configuration.", + "maxLength" : 80 + }, + "referenceForBeneficiary" : { + "type" : "string", + "description" : "The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.", + "maxLength" : 80 + }, + "schedule" : { + "$ref" : "#/components/schemas/SweepSchedule", + "description" : "The schedule when the `triggerAmount` is evaluated. If the balance meets the threshold, funds are pushed out of or pulled in to the balance account." + }, + "status" : { + "type" : "string", + "description" : "The status of the sweep. If not provided, by default, this is set to **active**.\n\nPossible values: \n\n * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. \n\n * **inactive**: the sweep is disabled and cannot be triggered. \n\n", + "enum" : [ "active", "inactive" ] + }, + "sweepAmount" : { + "$ref" : "#/components/schemas/Amount", + "description" : "The amount that must be pushed out or pulled in. You can configure either `sweepAmount` or `targetAmount`, not both." + }, + "targetAmount" : { + "$ref" : "#/components/schemas/Amount", + "description" : "The amount that must be available in the balance account after the sweep. You can configure either `sweepAmount` or `targetAmount`, not both." + }, + "triggerAmount" : { + "$ref" : "#/components/schemas/Amount", + "description" : "The threshold amount that triggers the sweep. If not provided, by default, the amount is set to zero. The `triggerAmount` is evaluated according to the specified `schedule.type`.\n\n* For `type` **pull**, if the balance is less than or equal to the `triggerAmount`, funds are pulled in to the balance account.\n\n* For `type` **push**, if the balance is more than or equal to the `triggerAmount`, funds are pushed out of the balance account." + }, + "type" : { + "type" : "string", + "default" : "push", + "description" : "The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**.\n\nPossible values:\n\n * **push**: _push out funds_ to a destination balance account or transfer instrument.\n\n * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.", + "enum" : [ "pull", "push" ] + } + }, + "required" : [ "counterparty", "currency", "schedule" ] + }, + "DKLocalAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The 4-10 digits bank account number (Kontonummer) (without separators or whitespace).", + "maxLength" : 10, + "minLength" : 4 + }, + "bankCode" : { + "type" : "string", + "description" : "The 4-digit bank code (Registreringsnummer) (without separators or whitespace).", + "maxLength" : 4, + "minLength" : 4 + }, + "type" : { + "type" : "string", + "default" : "dkLocal", + "description" : "**dkLocal**", + "enum" : [ "dkLocal" ] + } + }, + "required" : [ "accountNumber", "bankCode", "type" ] + }, + "DayOfWeekRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "array", + "description" : "List of days of the week.\n\nPossible values: **monday**, **tuesday**, **wednesday**, **thursday**, **friday**, **saturday**, **sunday**.\n\n", + "items" : { + "type" : "string", + "enum" : [ "friday", "monday", "saturday", "sunday", "thursday", "tuesday", "wednesday" ] + } + } + }, + "required" : [ "operation" ] + }, + "DelegatedAuthenticationData" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "sdkOutput" : { + "type" : "string", + "description" : "A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK.", + "maxLength" : 20000 + } + }, + "required" : [ "sdkOutput" ] + }, + "DeliveryAddress" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "city" : { + "type" : "string", + "description" : "The name of the city." + }, + "country" : { + "type" : "string", + "description" : "The two-character ISO-3166-1 alpha-2 country code. For example, **US**.\n>If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`." + }, + "line1" : { + "type" : "string", + "description" : "The name of the street. Do not include the number of the building.\n\nFor example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**." + }, + "line2" : { + "type" : "string", + "description" : "The number of the building.\n\nFor example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**." + }, + "line3" : { + "type" : "string", + "description" : "Additional information about the delivery address." + }, + "postalCode" : { + "type" : "string", + "description" : "The postal code.\nMaximum length:\n* 5 digits for an address in the US.\n* 10 characters for an address in all other countries." + }, + "stateOrProvince" : { + "type" : "string", + "description" : "The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada.\n> Required for the US and Canada." + } + }, + "required" : [ "country" ] + }, + "DeliveryContact" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "address" : { + "$ref" : "#/components/schemas/DeliveryAddress", + "description" : "The address of the contact." + }, + "company" : { + "type" : "string", + "description" : "The company name of the contact.", + "x-addedInVersion" : "2" + }, + "email" : { + "type" : "string", + "description" : "The email address of the contact." + }, + "fullPhoneNumber" : { + "type" : "string", + "description" : "The full phone number of the contact provided as a single string. It will be handled as a landline phone.\n**Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\"" + }, + "name" : { + "$ref" : "#/components/schemas/Name", + "description" : "The name of the contact." + }, + "phoneNumber" : { + "$ref" : "#/components/schemas/PhoneNumber", + "description" : "The phone number of the contact." + }, + "webAddress" : { + "type" : "string", + "description" : "The URL of the contact's website." + } + }, + "required" : [ "address", "name" ] + }, + "Device" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "id" : { + "type" : "string", + "description" : "The unique identifier of the SCA device." + }, + "name" : { + "type" : "string", + "description" : "The name of the SCA device. You can show this name to your user to help them identify the device." + }, + "paymentInstrumentId" : { + "type" : "string", + "description" : "The unique identifier of the payment instrument that is associated with the SCA device." + }, + "type" : { + "type" : "string", + "description" : "The type of device.\n\nPossible values: **ios**, **android**, **browser**.", + "enum" : [ "ios", "android", "browser" ] + } + } + }, + "DeviceInfo" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "cardCaptureTechnology" : { + "type" : "string", + "description" : "The technology used to capture the card details." + }, + "deviceName" : { + "type" : "string", + "description" : "The name of the device." + }, + "formFactor" : { + "type" : "string", + "description" : "The form factor of the device to be provisioned." + }, + "imei" : { + "type" : "string", + "description" : "The IMEI number of the device being provisioned." + }, + "isoDeviceType" : { + "type" : "string", + "description" : "The 2-digit device type provided on the ISO messages that the token is being provisioned to." + }, + "msisdn" : { + "type" : "string", + "description" : "The MSISDN of the device being provisioned." + }, + "osName" : { + "type" : "string", + "description" : "The name of the device operating system." + }, + "osVersion" : { + "type" : "string", + "description" : "The version of the device operating system." + }, + "paymentTypes" : { + "type" : "array", + "description" : "Different types of payments supported for the network token.", + "items" : { + "type" : "string" + } + }, + "serialNumber" : { + "type" : "string", + "description" : "The serial number of the device." + }, + "storageTechnology" : { + "type" : "string", + "description" : "The architecture or technology used for network token storage." + } + } + }, + "DifferentCurrenciesRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "boolean", + "description" : "Checks the currency of the payment against the currency of the payment instrument.\n\nPossible values:\n\n- **true**: The currency of the payment is different from the currency of the payment instrument.\n\n- **false**: The currencies are the same.\n\n" + } + }, + "required" : [ "operation" ] + }, + "Duration" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "unit" : { + "type" : "string", + "description" : "The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**.\n\nPossible values: **minutes**, **hours**, **days**, **weeks**, or **months**", + "enum" : [ "days", "hours", "minutes", "months", "weeks" ] + }, + "value" : { + "type" : "integer", + "format" : "int32", + "description" : "The length of time by the unit. For example, 5 days.\n\nThe maximum duration is 90 days or an equivalent in other units. For example, 3 months." + } + } + }, + "EntryModesRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "array", + "description" : "List of point-of-sale entry modes.\n\nPossible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**.\n\n", + "items" : { + "type" : "string", + "enum" : [ "barcode", "chip", "cof", "contactless", "magstripe", "manual", "ocr", "server", "unknown" ] + } + } + }, + "required" : [ "operation" ] + }, + "Expiry" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "month" : { + "type" : "string", + "description" : "The month in which the card will expire." + }, + "year" : { + "type" : "string", + "description" : "The year in which the card will expire." + } + } + }, + "Fee" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "amount" : { + "$ref" : "#/components/schemas/Amount", + "description" : "An object containing the fee amount." + } + }, + "required" : [ "amount" ] + }, + "GetNetworkTokenResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "token" : { + "$ref" : "#/components/schemas/NetworkToken", + "description" : "The details of the network token." + } + }, + "required" : [ "token" ] + }, + "GetTaxFormResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "content" : { + "type" : "string", + "format" : "byte", + "description" : "The content of the tax form in Base64 format." + }, + "contentType" : { + "type" : "string", + "description" : "The content type of the tax form.\n\nPossible values:\n* **application/pdf**\n\n", + "enum" : [ "application/pdf" ] + } + }, + "required" : [ "content" ] + }, + "GrantLimit" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "amount" : { + "$ref" : "#/components/schemas/Amount", + "description" : "The amount available on the grant account." + } + } + }, + "GrantOffer" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountHolderId" : { + "type" : "string", + "description" : "The identifier of the account holder to which the grant is offered." + }, + "amount" : { + "$ref" : "#/components/schemas/Amount", + "description" : "The principal amount of the grant." + }, + "contractType" : { + "type" : "string", + "description" : "The contract type of the grant offer. Possible value: **cashAdvance**, **loan**.", + "enum" : [ "cashAdvance", "loan" ] + }, + "expiresAt" : { + "type" : "string", + "format" : "date-time", + "description" : "The end date of the grant offer validity period." + }, + "fee" : { + "$ref" : "#/components/schemas/Fee", + "description" : "Details of the fee configuration." + }, + "id" : { + "type" : "string", + "description" : "The unique identifier of the grant offer." + }, + "repayment" : { + "$ref" : "#/components/schemas/Repayment", + "description" : "Details of the repayment configuration." + }, + "startsAt" : { + "type" : "string", + "format" : "date-time", + "description" : "The starting date of the grant offer validity period." + } + }, + "required" : [ "accountHolderId" ] + }, + "GrantOffers" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "grantOffers" : { + "type" : "array", + "description" : "A list of available grant offers.", + "items" : { + "$ref" : "#/components/schemas/GrantOffer" + } + } + }, + "required" : [ "grantOffers" ] + }, + "HKLocalAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code.", + "maxLength" : 15, + "minLength" : 9 + }, + "clearingCode" : { + "type" : "string", + "description" : "The 3-digit clearing code, without separators or whitespace.", + "maxLength" : 3, + "minLength" : 3 + }, + "type" : { + "type" : "string", + "default" : "hkLocal", + "description" : "**hkLocal**", + "enum" : [ "hkLocal" ] + } + }, + "required" : [ "accountNumber", "clearingCode", "type" ] + }, + "HULocalAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The 24-digit bank account number, without separators or whitespace.", + "maxLength" : 24, + "minLength" : 24 + }, + "type" : { + "type" : "string", + "default" : "huLocal", + "description" : "**huLocal**", + "enum" : [ "huLocal" ] + } + }, + "required" : [ "accountNumber", "type" ] + }, + "Href" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "href" : { + "type" : "string" + } + } + }, + "IbanAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "iban" : { + "type" : "string", + "description" : "The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard." + }, + "type" : { + "type" : "string", + "default" : "iban", + "description" : "**iban**", + "enum" : [ "iban" ] + } + }, + "required" : [ "iban", "type" ] + }, + "IbanAccountIdentificationRequirement" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "description" : { + "type" : "string", + "description" : "Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard." + }, + "ibanPrefixes" : { + "type" : "array", + "description" : "Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK.", + "items" : { + "type" : "string" + } + }, + "type" : { + "type" : "string", + "default" : "ibanAccountIdentificationRequirement", + "description" : "**ibanAccountIdentificationRequirement**", + "enum" : [ "ibanAccountIdentificationRequirement" ] + } + }, + "required" : [ "type" ] + }, + "InternationalTransactionRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "boolean", + "description" : "Boolean indicating whether transaction is an international transaction.\n\nPossible values:\n\n- **true**: The transaction is an international transaction.\n\n- **false**: The transaction is a domestic transaction.\n\n" + } + }, + "required" : [ "operation" ] + }, + "InvalidField" : { + "type" : "object", + "properties" : { + "name" : { + "type" : "string", + "description" : "The field that has an invalid value." + }, + "value" : { + "type" : "string", + "description" : "The invalid value." + }, + "message" : { + "type" : "string", + "description" : "Description of the validation error." + } + }, + "required" : [ "message", "name", "value" ] + }, + "JSONObject" : { + "type" : "object" + }, + "Link" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "first" : { + "$ref" : "#/components/schemas/Href", + "description" : "The link to the first page of the list." + }, + "last" : { + "$ref" : "#/components/schemas/Href", + "description" : "The link to the last page of the list." + }, + "next" : { + "$ref" : "#/components/schemas/Href", + "description" : "The link to the next page of the list." + }, + "previous" : { + "$ref" : "#/components/schemas/Href", + "description" : "The link to the previous page of the list." + }, + "self" : { + "$ref" : "#/components/schemas/Href", + "description" : "The link to the list page you are currently viewing." + } + } + }, + "ListNetworkTokensResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "networkTokens" : { + "type" : "array", + "description" : "List of network tokens.", + "items" : { + "$ref" : "#/components/schemas/NetworkToken" + } + } + } + }, + "MatchingTransactionsRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "integer", + "format" : "int32", + "description" : "The number of transactions." + } + }, + "required" : [ "operation" ] + }, + "MatchingValuesRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "array", + "items" : { + "type" : "string", + "enum" : [ "acquirerId", "amount", "currency", "merchantId", "merchantName" ] + } + } + }, + "required" : [ "operation" ] + }, + "MccsRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "array", + "description" : "List of merchant category codes (MCCs).", + "items" : { + "type" : "string" + } + } + }, + "required" : [ "operation" ] + }, + "MerchantAcquirerPair" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "acquirerId" : { + "type" : "string", + "description" : "The acquirer ID." + }, + "merchantId" : { + "type" : "string", + "description" : "The merchant identification number (MID)." + } + } + }, + "MerchantNamesRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/StringMatch" + } + } + }, + "required" : [ "operation" ] + }, + "MerchantsRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "array", + "description" : "List of merchant ID and acquirer ID pairs.", + "items" : { + "$ref" : "#/components/schemas/MerchantAcquirerPair" + } + } + }, + "required" : [ "operation" ] + }, + "NOLocalAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The 11-digit bank account number, without separators or whitespace.", + "maxLength" : 11, + "minLength" : 11 + }, + "type" : { + "type" : "string", + "default" : "noLocal", + "description" : "**noLocal**", + "enum" : [ "noLocal" ] + } + }, + "required" : [ "accountNumber", "type" ] + }, + "NZLocalAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix.", + "maxLength" : 16, + "minLength" : 15 + }, + "type" : { + "type" : "string", + "default" : "nzLocal", + "description" : "**nzLocal**", + "enum" : [ "nzLocal" ] + } + }, + "required" : [ "accountNumber", "type" ] + }, + "Name" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "firstName" : { + "type" : "string", + "description" : "The first name.", + "maxLength" : 80 + }, + "lastName" : { + "type" : "string", + "description" : "The last name.", + "maxLength" : 80 + } + }, + "required" : [ "firstName", "lastName" ] + }, + "NetworkToken" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "brandVariant" : { + "type" : "string", + "description" : "The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**." + }, + "creationDate" : { + "type" : "string", + "format" : "date-time", + "description" : "Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2020-12-18T10:15:30+01:00**.." + }, + "device" : { + "$ref" : "#/components/schemas/DeviceInfo", + "description" : "Device details." + }, + "id" : { + "type" : "string", + "description" : "The unique identifier of the network token." + }, + "paymentInstrumentId" : { + "type" : "string", + "description" : "The unique identifier of the payment instrument to which this network token belongs to." + }, + "status" : { + "type" : "string", + "description" : "The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**.", + "enum" : [ "active", "inactive", "suspended", "closed" ] + }, + "tokenLastFour" : { + "type" : "string", + "description" : "The last four digits of the network token `id`." + }, + "type" : { + "type" : "string", + "description" : "The type of network token. For example, **wallet**, **cof**." + } + } + }, + "NumberAndBicAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The bank account number, without separators or whitespace. The length and format depends on the bank or country.", + "maxLength" : 34 + }, + "additionalBankIdentification" : { + "$ref" : "#/components/schemas/AdditionalBankIdentification", + "description" : "Additional identification codes of the bank. Some banks may require these identifiers for cross-border transfers." + }, + "bic" : { + "type" : "string", + "description" : "The bank's 8- or 11-character BIC or SWIFT code.", + "maxLength" : 11, + "minLength" : 8 + }, + "type" : { + "type" : "string", + "default" : "numberAndBic", + "description" : "**numberAndBic**", + "enum" : [ "numberAndBic" ] + } + }, + "required" : [ "accountNumber", "bic", "type" ] + }, + "PLLocalAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace.", + "maxLength" : 26, + "minLength" : 26 + }, + "type" : { + "type" : "string", + "default" : "plLocal", + "description" : "**plLocal**", + "enum" : [ "plLocal" ] + } + }, + "required" : [ "accountNumber", "type" ] + }, + "PaginatedAccountHoldersResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountHolders" : { + "type" : "array", + "description" : "List of account holders.", + "items" : { + "$ref" : "#/components/schemas/AccountHolder" + } + }, + "hasNext" : { + "type" : "boolean", + "description" : "Indicates whether there are more items on the next page." + }, + "hasPrevious" : { + "type" : "boolean", + "description" : "Indicates whether there are more items on the previous page." + } + }, + "required" : [ "accountHolders", "hasNext", "hasPrevious" ] + }, + "PaginatedBalanceAccountsResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "balanceAccounts" : { + "type" : "array", + "description" : "List of balance accounts.", + "items" : { + "$ref" : "#/components/schemas/BalanceAccountBase" + } + }, + "hasNext" : { + "type" : "boolean", + "description" : "Indicates whether there are more items on the next page." + }, + "hasPrevious" : { + "type" : "boolean", + "description" : "Indicates whether there are more items on the previous page." + } + }, + "required" : [ "balanceAccounts", "hasNext", "hasPrevious" ] + }, + "PaginatedGetCardOrderItemResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "data" : { + "type" : "array", + "description" : "List of card order items in the card order batch.", + "items" : { + "$ref" : "#/components/schemas/CardOrderItem" + } + }, + "hasNext" : { + "type" : "boolean", + "description" : "Indicates whether there are more items on the next page." + }, + "hasPrevious" : { + "type" : "boolean", + "description" : "Indicates whether there are more items on the previous page." + } + }, + "required" : [ "data", "hasNext", "hasPrevious" ] + }, + "PaginatedGetCardOrderResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "cardOrders" : { + "type" : "array", + "description" : "Contains objects with information about card orders.", + "items" : { + "$ref" : "#/components/schemas/CardOrder" + } + }, + "hasNext" : { + "type" : "boolean", + "description" : "Indicates whether there are more items on the next page." + }, + "hasPrevious" : { + "type" : "boolean", + "description" : "Indicates whether there are more items on the previous page." + } + }, + "required" : [ "hasNext", "hasPrevious" ] + }, + "PaginatedPaymentInstrumentsResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "hasNext" : { + "type" : "boolean", + "description" : "Indicates whether there are more items on the next page." + }, + "hasPrevious" : { + "type" : "boolean", + "description" : "Indicates whether there are more items on the previous page." + }, + "paymentInstruments" : { + "type" : "array", + "description" : "List of payment instruments associated with the balance account.", + "items" : { + "$ref" : "#/components/schemas/PaymentInstrument" + } + } + }, + "required" : [ "hasNext", "hasPrevious", "paymentInstruments" ] + }, + "PaymentInstrument" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "additionalBankAccountIdentifications" : { + "type" : "array", + "deprecated" : true, + "description" : "Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**.", + "items" : { + "oneOf" : [ { + "$ref" : "#/components/schemas/IbanAccountIdentification" + } ] + }, + "x-deprecatedInVersion" : "2", + "x-deprecatedMessage" : "Please use `bankAccount` object instead" + }, + "balanceAccountId" : { + "type" : "string", + "description" : "The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument." + }, + "bankAccount" : { + "$ref" : "#/components/schemas/BankAccountDetails", + "description" : "Contains the business account details. Returned when you create a payment instrument with `type` **bankAccount**." + }, + "card" : { + "$ref" : "#/components/schemas/Card", + "description" : "Contains information about the card payment instrument. Returned when you create a payment instrument with `type` **card**." + }, + "description" : { + "type" : "string", + "description" : "Your description for the payment instrument, maximum 300 characters.", + "maxLength" : 300 + }, + "id" : { + "type" : "string", + "description" : "The unique identifier of the payment instrument." + }, + "issuingCountryCode" : { + "type" : "string", + "description" : "The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**." + }, + "paymentInstrumentGroupId" : { + "type" : "string", + "description" : "The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs." + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the payment instrument, maximum 150 characters.", + "maxLength" : 150 + }, + "status" : { + "type" : "string", + "description" : "The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**.\n\nPossible values: \n\n * **active**: The payment instrument is active and can be used to make payments. \n\n * **inactive**: The payment instrument is inactive and cannot be used to make payments. \n\n * **suspended**: The payment instrument is suspended, either because it was stolen or lost. \n\n * **closed**: The payment instrument is permanently closed. This action cannot be undone. \n\n", + "enum" : [ "active", "closed", "inactive", "suspended" ] + }, + "statusComment" : { + "type" : "string", + "description" : "The status comment provides additional information for the statusReason of the payment instrument.", + "x-addedInVersion" : "2" + }, + "statusReason" : { + "type" : "string", + "description" : "The reason for the status of the payment instrument.\n\nPossible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**.\nIf the reason is **other**, you must also send the `statusComment` parameter describing the status change.", + "enum" : [ "accountClosure", "damaged", "endOfLife", "expired", "lost", "other", "stolen", "suspectedFraud", "transactionRule" ], + "x-addedInVersion" : "2" + }, + "type" : { + "type" : "string", + "description" : "The type of payment instrument.\n\nPossible values: **card**, **bankAccount**.", + "enum" : [ "bankAccount", "card" ] + } + }, + "required" : [ "balanceAccountId", "id", "issuingCountryCode", "type" ] + }, + "PaymentInstrumentGroup" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "balancePlatform" : { + "type" : "string", + "description" : "The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs." + }, + "description" : { + "type" : "string", + "description" : "Your description for the payment instrument group.", + "maxLength" : 300 + }, + "id" : { + "type" : "string", + "description" : "The unique identifier of the payment instrument group." + }, + "properties" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + }, + "description" : "Properties of the payment instrument group." + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the payment instrument group.", + "maxLength" : 150 + }, + "txVariant" : { + "type" : "string", + "description" : "The tx variant of the payment instrument group." + } + }, + "required" : [ "balancePlatform", "txVariant" ] + }, + "PaymentInstrumentGroupInfo" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "balancePlatform" : { + "type" : "string", + "description" : "The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs." + }, + "description" : { + "type" : "string", + "description" : "Your description for the payment instrument group.", + "maxLength" : 300 + }, + "properties" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + }, + "description" : "Properties of the payment instrument group." + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the payment instrument group.", + "maxLength" : 150 + }, + "txVariant" : { + "type" : "string", + "description" : "The tx variant of the payment instrument group." + } + }, + "required" : [ "balancePlatform", "txVariant" ] + }, + "PaymentInstrumentInfo" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "balanceAccountId" : { + "type" : "string", + "description" : "The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument." + }, + "bankAccount" : { + "$ref" : "#/components/schemas/BankAccountModel", + "description" : "Contains the business account details." + }, + "card" : { + "$ref" : "#/components/schemas/CardInfo", + "description" : "Contains information about the card. Required when you create a payment instrument of `type` **card**." + }, + "description" : { + "type" : "string", + "description" : "Your description for the payment instrument, maximum 300 characters.", + "maxLength" : 300 + }, + "issuingCountryCode" : { + "type" : "string", + "description" : "The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**." + }, + "paymentInstrumentGroupId" : { + "type" : "string", + "description" : "The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs." + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the payment instrument, maximum 150 characters.", + "maxLength" : 150 + }, + "status" : { + "type" : "string", + "description" : "The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**.\n\nPossible values: \n\n * **active**: The payment instrument is active and can be used to make payments. \n\n * **inactive**: The payment instrument is inactive and cannot be used to make payments. \n\n * **suspended**: The payment instrument is suspended, either because it was stolen or lost. \n\n * **closed**: The payment instrument is permanently closed. This action cannot be undone. \n\n", + "enum" : [ "active", "closed", "inactive", "suspended" ] + }, + "statusComment" : { + "type" : "string", + "description" : "The status comment provides additional information for the statusReason of the payment instrument.", + "x-addedInVersion" : "2" + }, + "statusReason" : { + "type" : "string", + "description" : "The reason for the status of the payment instrument.\n\nPossible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**.\nIf the reason is **other**, you must also send the `statusComment` parameter describing the status change.", + "enum" : [ "accountClosure", "damaged", "endOfLife", "expired", "lost", "other", "stolen", "suspectedFraud", "transactionRule" ], + "x-addedInVersion" : "2" + }, + "type" : { + "type" : "string", + "description" : "The type of payment instrument.\n\nPossible values: **card**, **bankAccount**.", + "enum" : [ "bankAccount", "card" ] + } + }, + "required" : [ "balanceAccountId", "issuingCountryCode", "type" ] + }, + "PaymentInstrumentRequirement" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "description" : { + "type" : "string", + "description" : "Specifies the requirements for the payment instrument that need to be included in the request for a particular route." + }, + "issuingCountryCode" : { + "type" : "string", + "description" : "The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**." + }, + "issuingCountryCodes" : { + "type" : "array", + "description" : "The two-character ISO-3166-1 alpha-2 country code list for payment instruments.", + "items" : { + "type" : "string" + } + }, + "onlyForCrossBalancePlatform" : { + "type" : "boolean", + "description" : "Specifies if the requirement only applies to transfers to another balance platform." + }, + "paymentInstrumentType" : { + "type" : "string", + "description" : "The type of the payment instrument. For example, \"BankAccount\" or \"Card\".", + "enum" : [ "BankAccount", "Card" ] + }, + "type" : { + "type" : "string", + "default" : "paymentInstrumentRequirement", + "description" : "**paymentInstrumentRequirement**", + "enum" : [ "paymentInstrumentRequirement" ] + } + }, + "required" : [ "type" ] + }, + "PaymentInstrumentRevealInfo" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "cvc" : { + "type" : "string", + "description" : "The CVC2 value of the card." + }, + "expiration" : { + "$ref" : "#/components/schemas/Expiry", + "description" : "The expiration date of the card." + }, + "pan" : { + "type" : "string", + "description" : "The primary account number (PAN) of the card." + } + }, + "required" : [ "cvc", "expiration", "pan" ] + }, + "PaymentInstrumentRevealRequest" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "encryptedKey" : { + "type" : "string", + "description" : "The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen." + }, + "paymentInstrumentId" : { + "type" : "string", + "description" : "The unique identifier of the payment instrument, which is the card for which you are managing the PIN." + } + }, + "required" : [ "encryptedKey", "paymentInstrumentId" ] + }, + "PaymentInstrumentRevealResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "encryptedData" : { + "type" : "string", + "description" : "The data encrypted using the `encryptedKey`." + } + }, + "required" : [ "encryptedData" ] + }, + "PaymentInstrumentUpdateRequest" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "balanceAccountId" : { + "type" : "string", + "description" : "The unique identifier of the balance account associated with this payment instrument.\n>You can only change the balance account ID if the payment instrument has **inactive** status." + }, + "card" : { + "$ref" : "#/components/schemas/CardInfo", + "description" : "Object that contains information about the card payment instrument." + }, + "status" : { + "type" : "string", + "description" : "The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**.\n\nPossible values: \n\n * **active**: The payment instrument is active and can be used to make payments. \n\n * **inactive**: The payment instrument is inactive and cannot be used to make payments. \n\n * **suspended**: The payment instrument is suspended, either because it was stolen or lost. \n\n * **closed**: The payment instrument is permanently closed. This action cannot be undone. \n\n", + "enum" : [ "active", "closed", "inactive", "suspended" ] + }, + "statusComment" : { + "type" : "string", + "description" : "Comment for the status of the payment instrument.\n\nRequired if `statusReason` is **other**." + }, + "statusReason" : { + "type" : "string", + "description" : "The reason for updating the status of the payment instrument.\n\nPossible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**.\nIf the reason is **other**, you must also send the `statusComment` parameter describing the status change.", + "enum" : [ "accountClosure", "damaged", "endOfLife", "expired", "lost", "other", "stolen", "suspectedFraud", "transactionRule" ], + "x-addedInVersion" : "2" + } + } + }, + "Phone" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "number" : { + "type" : "string", + "description" : "The full phone number provided as a single string. \nFor example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, \n\n or **\"(0031) 611223344\"**." + }, + "type" : { + "type" : "string", + "description" : "Type of phone number.\nPossible values: \n**Landline**, **Mobile**.\n", + "enum" : [ "landline", "mobile" ] + } + }, + "required" : [ "number", "type" ] + }, + "PhoneNumber" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "phoneCountryCode" : { + "type" : "string", + "description" : "The two-character ISO-3166-1 alpha-2 country code of the phone number.\nFor example, **US** or **NL**." + }, + "phoneNumber" : { + "type" : "string", + "description" : "The phone number.\nThe inclusion of the phone number country code is not necessary." + }, + "phoneType" : { + "type" : "string", + "description" : "The type of the phone number.\nPossible values: **Landline**, **Mobile**, **SIP**, **Fax**.", + "enum" : [ "Fax", "Landline", "Mobile", "SIP" ] + } + } + }, + "PinChangeRequest" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "encryptedKey" : { + "type" : "string", + "description" : "The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen." + }, + "encryptedPinBlock" : { + "type" : "string", + "description" : "The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block)." + }, + "paymentInstrumentId" : { + "type" : "string", + "description" : "The unique identifier of the payment instrument, which is the card for which you are managing the PIN." + }, + "token" : { + "type" : "string", + "description" : "The 16-digit token that you used to generate the `encryptedPinBlock`." + } + }, + "required" : [ "encryptedKey", "encryptedPinBlock", "paymentInstrumentId", "token" ] + }, + "PinChangeResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "status" : { + "type" : "string", + "description" : "The status of the request for PIN change.\n\nPossible values: **completed**, **pending**, **unavailable**.", + "enum" : [ "completed", "pending", "unavailable" ] + } + }, + "required" : [ "status" ] + }, + "PlatformPaymentConfiguration" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "salesDayClosingTime" : { + "type" : "string", + "format" : "time", + "description" : "Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account.\n\nPossible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**.\n\nDefault value: **\"00:00\"**." + }, + "settlementDelayDays" : { + "type" : "integer", + "format" : "int32", + "description" : "Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account.\n\nPossible values: **1** to **20**, or **null**.\n* Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement).\n* Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement).\n\nDefault value: **null**." + } + } + }, + "ProcessingTypesRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "array", + "description" : "List of processing types.\n\nPossible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**.\n\n", + "items" : { + "type" : "string", + "enum" : [ "atmWithdraw", "balanceInquiry", "ecommerce", "moto", "pos", "recurring", "token", "unknown" ] + } + } + }, + "required" : [ "operation" ] + }, + "PublicKeyResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "publicKey" : { + "type" : "string", + "description" : "The public key you need for encrypting a symmetric session key." + }, + "publicKeyExpiryDate" : { + "type" : "string", + "description" : "The expiry date of the public key." + } + }, + "required" : [ "publicKey", "publicKeyExpiryDate" ] + }, + "RegisterSCAFinalResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "success" : { + "type" : "boolean", + "description" : "Specifies if the registration was initiated successfully." + } + } + }, + "RegisterSCARequest" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "name" : { + "type" : "string", + "description" : "The name of the SCA device that you are registering. You can use it to help your users identify the device.\n\nIf you do not specify a `name`, Adyen automatically generates one." + }, + "paymentInstrumentId" : { + "type" : "string", + "description" : "The unique identifier of the payment instrument for which you are registering the SCA device." + }, + "strongCustomerAuthentication" : { + "$ref" : "#/components/schemas/DelegatedAuthenticationData", + "description" : "Contains information required to register the SCA device." + } + }, + "required" : [ "paymentInstrumentId", "strongCustomerAuthentication" ] + }, + "RegisterSCAResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "id" : { + "type" : "string", + "description" : "The unique identifier of the SCA device you are registering." + }, + "paymentInstrumentId" : { + "type" : "string", + "description" : "The unique identifier of the payment instrument for which you are registering the SCA device." + }, + "sdkInput" : { + "type" : "string", + "description" : "A string that you must pass to the authentication SDK to continue with the registration process.", + "maxLength" : 20000 + }, + "success" : { + "type" : "boolean", + "description" : "Specifies if the registration was initiated successfully." + } + } + }, + "RemediatingAction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "code" : { + "type" : "string", + "description" : "The remediating action code." + }, + "message" : { + "type" : "string", + "description" : "A description of how you can resolve the verification error." + } + } + }, + "Repayment" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "basisPoints" : { + "type" : "integer", + "format" : "int32", + "description" : "The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp)." + }, + "term" : { + "$ref" : "#/components/schemas/RepaymentTerm", + "description" : "An object containing the details of the configuration for repayment term." + }, + "threshold" : { + "$ref" : "#/components/schemas/ThresholdRepayment", + "description" : "An object containing the details of the 30-day repayment threshold." + } + }, + "required" : [ "basisPoints" ] + }, + "RepaymentTerm" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "estimatedDays" : { + "type" : "integer", + "format" : "int32", + "description" : "The estimated term for repaying the grant, in days." + }, + "maximumDays" : { + "type" : "integer", + "format" : "int32", + "description" : "The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**." + } + }, + "required" : [ "estimatedDays" ] + }, + "RestServiceError" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "detail" : { + "type" : "string", + "description" : "A human-readable explanation specific to this occurrence of the problem." + }, + "errorCode" : { + "type" : "string", + "description" : "A code that identifies the problem type." + }, + "instance" : { + "type" : "string", + "description" : "A unique URI that identifies the specific occurrence of the problem." + }, + "invalidFields" : { + "type" : "array", + "description" : "Detailed explanation of each validation error, when applicable.", + "items" : { + "$ref" : "#/components/schemas/InvalidField" + } + }, + "requestId" : { + "type" : "string", + "description" : "A unique reference for the request, essentially the same as `pspReference`." + }, + "response" : { + "$ref" : "#/components/schemas/JSONObject", + "description" : "JSON response payload." + }, + "status" : { + "type" : "integer", + "format" : "int32", + "description" : "The HTTP status code." + }, + "title" : { + "type" : "string", + "description" : "A short, human-readable summary of the problem type." + }, + "type" : { + "type" : "string", + "description" : "A URI that identifies the problem type, pointing to human-readable documentation on this problem type." + } + }, + "required" : [ "detail", "errorCode", "status", "title", "type" ] + }, + "RevealPinRequest" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "encryptedKey" : { + "type" : "string", + "description" : "The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen." + }, + "paymentInstrumentId" : { + "type" : "string", + "description" : "The unique identifier of the payment instrument, which is the card for which you are managing the PIN." + } + }, + "required" : [ "encryptedKey", "paymentInstrumentId" ] + }, + "RevealPinResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "encryptedPinBlock" : { + "type" : "string", + "description" : "The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block)." + }, + "token" : { + "type" : "string", + "description" : "The 16-digit token that you need to extract the `encryptedPinBlock`." + } + }, + "required" : [ "encryptedPinBlock", "token" ] + }, + "RiskScores" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "mastercard" : { + "type" : "integer", + "format" : "int32", + "description" : "Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk)." + }, + "visa" : { + "type" : "integer", + "format" : "int32", + "description" : "Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk)." + } + } + }, + "RiskScoresRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "$ref" : "#/components/schemas/RiskScores" + } + }, + "required" : [ "operation" ] + }, + "SELocalAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace.", + "maxLength" : 10, + "minLength" : 7 + }, + "clearingNumber" : { + "type" : "string", + "description" : "The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace.", + "maxLength" : 5, + "minLength" : 4 + }, + "type" : { + "type" : "string", + "default" : "seLocal", + "description" : "**seLocal**", + "enum" : [ "seLocal" ] + } + }, + "required" : [ "accountNumber", "clearingNumber", "type" ] + }, + "SGLocalAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The 4- to 19-digit bank account number, without separators or whitespace.", + "maxLength" : 19, + "minLength" : 4 + }, + "bic" : { + "type" : "string", + "description" : "The bank's 8- or 11-character BIC or SWIFT code.", + "maxLength" : 11, + "minLength" : 8 + }, + "type" : { + "type" : "string", + "default" : "sgLocal", + "description" : "**sgLocal**", + "enum" : [ "sgLocal" ] + } + }, + "required" : [ "accountNumber", "bic" ] + }, + "SameAmountRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "boolean" + } + }, + "required" : [ "operation" ] + }, + "SameCounterpartyRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "boolean" + } + }, + "required" : [ "operation" ] + }, + "SearchRegisteredDevicesResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "data" : { + "type" : "array", + "description" : "Contains a list of registered SCA devices and their corresponding details.", + "items" : { + "$ref" : "#/components/schemas/Device" + } + }, + "itemsTotal" : { + "type" : "integer", + "format" : "int32", + "description" : "The total amount of registered SCA devices that match the query parameters." + }, + "link" : { + "$ref" : "#/components/schemas/Link", + "description" : "Contains links to the list pages." + }, + "pagesTotal" : { + "type" : "integer", + "format" : "int32", + "description" : "The total amount of list pages." + } + } + }, + "SourceAccountTypesRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "array", + "description" : "The list of source account types to be evaluated.", + "items" : { + "type" : "string", + "enum" : [ "balanceAccount", "businessAccount" ] + } + } + }, + "required" : [ "operation" ] + }, + "StringMatch" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**,", + "enum" : [ "contains", "endsWith", "isEqualTo", "startsWith" ] + }, + "value" : { + "type" : "string", + "description" : "The string to be matched." + } + } + }, + "SweepConfigurationV2" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "category" : { + "type" : "string", + "description" : "The type of transfer that results from the sweep.\n\nPossible values:\n\n - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).\n\n- **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform.\n\nRequired when setting `priorities`.", + "enum" : [ "bank", "internal", "platformPayment" ], + "x-addedInVersion" : "2" + }, + "counterparty" : { + "$ref" : "#/components/schemas/SweepCounterparty", + "description" : "The destination or the source of the funds, depending on the sweep `type`.\n\nEither a `balanceAccountId`, `transferInstrumentId`, or `merchantAccount` is required." + }, + "currency" : { + "type" : "string", + "description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**.\n\nThe sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances)." + }, + "description" : { + "type" : "string", + "description" : "The message that will be used in the sweep transfer's description body with a maximum length of 140 characters.\n\nIf the message is longer after replacing placeholders, the message will be cut off at 140 characters." + }, + "id" : { + "type" : "string", + "description" : "The unique identifier of the sweep.", + "readOnly" : true + }, + "priorities" : { + "type" : "array", + "description" : "The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities.\n\nPossible values:\n\n* **regular**: for normal, low-value transactions.\n\n* **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.\n\n* **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.\n\n* **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).\n\n* **crossBorder**: for high-value transfers to a recipient in a different country.\n\n* **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).\n\nSet `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).", + "items" : { + "type" : "string", + "enum" : [ "crossBorder", "fast", "instant", "internal", "regular", "wire" ] + }, + "x-addedInVersion" : "2" + }, + "reason" : { + "type" : "string", + "description" : "The reason for disabling the sweep.", + "enum" : [ "accountHierarchyNotActive", "amountLimitExceeded", "approved", "balanceAccountTemporarilyBlockedByTransactionRule", "counterpartyAccountBlocked", "counterpartyAccountClosed", "counterpartyAccountNotFound", "counterpartyAddressRequired", "counterpartyBankTimedOut", "counterpartyBankUnavailable", "declined", "declinedByTransactionRule", "directDebitNotSupported", "error", "notEnoughBalance", "pending", "pendingApproval", "pendingExecution", "refusedByCounterpartyBank", "refusedByCustomer", "routeNotFound", "scaFailed", "transferInstrumentDoesNotExist", "unknown" ], + "readOnly" : true + }, + "reasonDetail" : { + "type" : "string", + "description" : "The human readable reason for disabling the sweep.", + "readOnly" : true + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the sweep configuration.", + "maxLength" : 80 + }, + "referenceForBeneficiary" : { + "type" : "string", + "description" : "The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.", + "maxLength" : 80 + }, + "schedule" : { + "$ref" : "#/components/schemas/SweepSchedule", + "description" : "The schedule when the `triggerAmount` is evaluated. If the balance meets the threshold, funds are pushed out of or pulled in to the balance account." + }, + "status" : { + "type" : "string", + "description" : "The status of the sweep. If not provided, by default, this is set to **active**.\n\nPossible values: \n\n * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. \n\n * **inactive**: the sweep is disabled and cannot be triggered. \n\n", + "enum" : [ "active", "inactive" ] + }, + "sweepAmount" : { + "$ref" : "#/components/schemas/Amount", + "description" : "The amount that must be pushed out or pulled in. You can configure either `sweepAmount` or `targetAmount`, not both." + }, + "targetAmount" : { + "$ref" : "#/components/schemas/Amount", + "description" : "The amount that must be available in the balance account after the sweep. You can configure either `sweepAmount` or `targetAmount`, not both." + }, + "triggerAmount" : { + "$ref" : "#/components/schemas/Amount", + "description" : "The threshold amount that triggers the sweep. If not provided, by default, the amount is set to zero. The `triggerAmount` is evaluated according to the specified `schedule.type`.\n\n* For `type` **pull**, if the balance is less than or equal to the `triggerAmount`, funds are pulled in to the balance account.\n\n* For `type` **push**, if the balance is more than or equal to the `triggerAmount`, funds are pushed out of the balance account." + }, + "type" : { + "type" : "string", + "default" : "push", + "description" : "The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**.\n\nPossible values:\n\n * **push**: _push out funds_ to a destination balance account or transfer instrument.\n\n * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.", + "enum" : [ "pull", "push" ] + } + }, + "required" : [ "counterparty", "currency", "id", "schedule" ] + }, + "SweepCounterparty" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "balanceAccountId" : { + "type" : "string", + "description" : "The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).\n\n > If you are updating the counterparty from a transfer instrument to a balance account, set `transferInstrumentId` to **null**." + }, + "merchantAccount" : { + "type" : "string", + "description" : "The merchant account that will be the source of funds.\n\nYou can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen." + }, + "transferInstrumentId" : { + "type" : "string", + "description" : "The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type`\n\n. To set up automated top-up sweeps to balance accounts in your [marketplace](https://docs.adyen.com/marketplaces/top-up-balance-account/#before-you-begin) or [platform](https://docs.adyen.com/platforms/top-up-balance-account/#before-you-begin), use this parameter in combination with a `merchantAccount` and a sweep `type` of **pull**.\n\nTop-up sweeps start a direct debit request from the source transfer instrument. Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**." + } + } + }, + "SweepSchedule" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "cronExpression" : { + "type" : "string", + "description" : "A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. \nFor example, **30 17 * * MON** schedules a sweep every Monday at 17:30.\n\nThe expression must have five values separated by a single space in the following order:\n\n* Minute: **0-59**\n\n* Hour: **0-23**\n\n* Day of the month: **1-31**\n\n* Month: **1-12** or **JAN-DEC**\n\n* Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**.\n\nThe following non-standard characters are supported: *****, **L**, **#**, **W** and **/**. See [crontab guru](https://crontab.guru/) for more examples.\n\nRequired when `type` is **cron**.\n" + }, + "type" : { + "type" : "string", + "description" : "The schedule type.\n\nPossible values:\n\n* **cron**: push out funds based on a `cronExpression`.\n\n* **daily**: push out funds daily at 07:00 AM CET.\n\n* **weekly**: push out funds every Monday at 07:00 AM CET.\n\n* **monthly**: push out funds every first of the month at 07:00 AM CET.\n\n* **balance**: execute the sweep instantly if the `triggerAmount` is reached.\n", + "enum" : [ "daily", "weekly", "monthly", "balance", "cron" ] + } + }, + "required" : [ "type" ] + }, + "ThresholdRepayment" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "amount" : { + "$ref" : "#/components/schemas/Amount", + "description" : "The amount to be repaid on a 30-day basis." + } + }, + "required" : [ "amount" ] + }, + "TimeOfDay" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "endTime" : { + "type" : "string", + "description" : "The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**.\n\n" + }, + "startTime" : { + "type" : "string", + "description" : "The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**.\n\n" + } + } + }, + "TimeOfDayRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "$ref" : "#/components/schemas/TimeOfDay" + } + }, + "required" : [ "operation" ] + }, + "TokenRequestorsRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "type" : "array", + "items" : { + "type" : "string" + } + } + }, + "required" : [ "operation" ] + }, + "TotalAmountRestriction" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "operation" : { + "type" : "string", + "description" : "Defines how the condition must be evaluated." + }, + "value" : { + "$ref" : "#/components/schemas/Amount", + "description" : "The amount value and currency." + } + }, + "required" : [ "operation" ] + }, + "TransactionRule" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "aggregationLevel" : { + "type" : "string", + "description" : "The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`.\n\nIf not provided, by default, the rule will accumulate data at the **paymentInstrument** level.\n\nPossible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**.", + "x-addedInVersion" : "2" + }, + "description" : { + "type" : "string", + "description" : "Your description for the transaction rule.", + "maxLength" : 300 + }, + "endDate" : { + "type" : "string", + "description" : "The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**.\n\nIf not provided, the rule will be evaluated until the rule status is set to **inactive**." + }, + "entityKey" : { + "$ref" : "#/components/schemas/TransactionRuleEntityKey", + "description" : "The type and unique identifier of the resource to which the rule applies.", + "x-addedInVersion" : "2" + }, + "id" : { + "type" : "string", + "description" : "The unique identifier of the transaction rule." + }, + "interval" : { + "$ref" : "#/components/schemas/TransactionRuleInterval", + "description" : "The [time interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) when the rule conditions apply." + }, + "outcomeType" : { + "type" : "string", + "description" : "The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule.\n\nPossible values:\n* **hardBlock**: the transaction is declined.\n* **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined.\n\nDefault value: **hardBlock**.\n\n> **scoreBased** is not allowed when `requestType` is **bankTransfer**.", + "enum" : [ "enforceSCA", "hardBlock", "scoreBased", "timedBlock" ], + "x-addedInVersion" : "2" + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the transaction rule.", + "maxLength" : 150 + }, + "requestType" : { + "type" : "string", + "description" : "Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**.\n\nPossible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**.", + "enum" : [ "authentication", "authorization", "bankTransfer", "tokenization" ], + "x-addedInVersion" : "2" + }, + "ruleRestrictions" : { + "$ref" : "#/components/schemas/TransactionRuleRestrictions", + "description" : "Contains one or more objects that define the [rule conditions](https://docs.adyen.com/issuing/transaction-rules#conditions). Each object must have a value and an operation which determines how the values must be evaluated.\n\nFor example, a `countries` object can have a list of country codes **[\"US\", \"CA\"]** in the `value` field and **anyMatch** in the `operation` field.", + "x-addedInVersion" : "2" + }, + "score" : { + "type" : "integer", + "format" : "int32", + "description" : "A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**.", + "x-addedInVersion" : "2" + }, + "startDate" : { + "type" : "string", + "description" : "The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**.\n\nIf not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. \n\n" + }, + "status" : { + "type" : "string", + "description" : "The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created \nwith an **active** status. \n\nPossible values: **active**, **inactive**.", + "enum" : [ "active", "inactive" ] + }, + "type" : { + "type" : "string", + "description" : "The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data.\n\nPossible values:\n * **blockList**: decline a transaction when the conditions are met.\n * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met.\n * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met.\n", + "enum" : [ "allowList", "blockList", "maxUsage", "velocity" ] + } + }, + "required" : [ "description", "entityKey", "interval", "reference", "ruleRestrictions", "type" ] + }, + "TransactionRuleEntityKey" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "entityReference" : { + "type" : "string", + "description" : "The unique identifier of the resource." + }, + "entityType" : { + "type" : "string", + "description" : "The type of resource.\n\nPossible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**." + } + } + }, + "TransactionRuleInfo" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "aggregationLevel" : { + "type" : "string", + "description" : "The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`.\n\nIf not provided, by default, the rule will accumulate data at the **paymentInstrument** level.\n\nPossible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**.", + "x-addedInVersion" : "2" + }, + "description" : { + "type" : "string", + "description" : "Your description for the transaction rule.", + "maxLength" : 300 + }, + "endDate" : { + "type" : "string", + "description" : "The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**.\n\nIf not provided, the rule will be evaluated until the rule status is set to **inactive**." + }, + "entityKey" : { + "$ref" : "#/components/schemas/TransactionRuleEntityKey", + "description" : "The type and unique identifier of the resource to which the rule applies.", + "x-addedInVersion" : "2" + }, + "interval" : { + "$ref" : "#/components/schemas/TransactionRuleInterval", + "description" : "The [time interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) when the rule conditions apply." + }, + "outcomeType" : { + "type" : "string", + "description" : "The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule.\n\nPossible values:\n* **hardBlock**: the transaction is declined.\n* **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined.\n\nDefault value: **hardBlock**.\n\n> **scoreBased** is not allowed when `requestType` is **bankTransfer**.", + "enum" : [ "enforceSCA", "hardBlock", "scoreBased", "timedBlock" ], + "x-addedInVersion" : "2" + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the transaction rule.", + "maxLength" : 150 + }, + "requestType" : { + "type" : "string", + "description" : "Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**.\n\nPossible values: **authorization**, **authentication**, **tokenization**, **bankTransfer**.", + "enum" : [ "authentication", "authorization", "bankTransfer", "tokenization" ], + "x-addedInVersion" : "2" + }, + "ruleRestrictions" : { + "$ref" : "#/components/schemas/TransactionRuleRestrictions", + "description" : "Contains one or more objects that define the [rule conditions](https://docs.adyen.com/issuing/transaction-rules#conditions). Each object must have a value and an operation which determines how the values must be evaluated.\n\nFor example, a `countries` object can have a list of country codes **[\"US\", \"CA\"]** in the `value` field and **anyMatch** in the `operation` field.", + "x-addedInVersion" : "2" + }, + "score" : { + "type" : "integer", + "format" : "int32", + "description" : "A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**.", + "x-addedInVersion" : "2" + }, + "startDate" : { + "type" : "string", + "description" : "The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**.\n\nIf not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. \n\n" + }, + "status" : { + "type" : "string", + "description" : "The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created \nwith an **active** status. \n\nPossible values: **active**, **inactive**.", + "enum" : [ "active", "inactive" ] + }, + "type" : { + "type" : "string", + "description" : "The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data.\n\nPossible values:\n * **blockList**: decline a transaction when the conditions are met.\n * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met.\n * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met.\n", + "enum" : [ "allowList", "blockList", "maxUsage", "velocity" ] + } + }, + "required" : [ "description", "entityKey", "interval", "reference", "ruleRestrictions", "type" ] + }, + "TransactionRuleInterval" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "dayOfMonth" : { + "type" : "integer", + "format" : "int32", + "description" : "The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month.", + "x-addedInVersion" : "2" + }, + "dayOfWeek" : { + "type" : "string", + "description" : "The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**.\n\nPossible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**.", + "enum" : [ "friday", "monday", "saturday", "sunday", "thursday", "tuesday", "wednesday" ], + "x-addedInVersion" : "2" + }, + "duration" : { + "$ref" : "#/components/schemas/Duration", + "description" : "The duration, which you can specify in hours, days, weeks, or months. The maximum duration is 90 days or an equivalent in other units. Required when the `type` is **rolling** or **sliding**.", + "x-addedInVersion" : "2" + }, + "timeOfDay" : { + "type" : "string", + "description" : "The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**.", + "x-addedInVersion" : "2" + }, + "timeZone" : { + "type" : "string", + "description" : "The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**.", + "x-addedInVersion" : "2" + }, + "type" : { + "type" : "string", + "description" : "The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset.\n\nPossible values:\n * **perTransaction**: conditions are evaluated and the counters are reset for every transaction.\n * **daily**: the counters are reset daily at 00:00:00 CET.\n * **weekly**: the counters are reset every Monday at 00:00:00 CET. \n * **monthly**: the counters reset every first day of the month at 00:00:00 CET. \n * **lifetime**: conditions are applied to the lifetime of the payment instrument.\n * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET.\n * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify.", + "enum" : [ "daily", "lifetime", "monthly", "perTransaction", "rolling", "sliding", "weekly" ] + } + }, + "required" : [ "type" ] + }, + "TransactionRuleResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "transactionRule" : { + "$ref" : "#/components/schemas/TransactionRule", + "description" : "The transaction rule." + } + } + }, + "TransactionRuleRestrictions" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "activeNetworkTokens" : { + "$ref" : "#/components/schemas/ActiveNetworkTokensRestriction", + "description" : "The total number of tokens that a card can have across different kinds of digital wallets on the user's phones, watches, or other wearables.\n\nSupported operations: **equals**, **notEquals**, **greaterThanOrEqualTo**, **greaterThan**, **lessThanOrEqualTo**, **lessThan**." + }, + "brandVariants" : { + "$ref" : "#/components/schemas/BrandVariantsRestriction", + "description" : "List of card brand variants and the operation.\n\nSupported operations: **anyMatch**, **noneMatch**." + }, + "counterpartyBank" : { + "$ref" : "#/components/schemas/CounterpartyBankRestriction", + "description" : "Contains a list of counterparty financial institutions and how they must be evaluated.\n\nSupported operations: **anyMatch**, **noneMatch**." + }, + "counterpartyTypes" : { + "$ref" : "#/components/schemas/CounterpartyTypesRestriction", + "description" : "Contains a list of counterparty types and how they must be evaluated.\n\nSupported operations: **anyMatch**, **noneMatch**.\n\nSupported value inputs:\n- **balanceAccount**\n- **bankAccount**\n- **card**\n- **transferInstrument**" + }, + "countries" : { + "$ref" : "#/components/schemas/CountriesRestriction", + "description" : "List of countries and the operation.\n\nSupported operations: **anyMatch**, **noneMatch**." + }, + "dayOfWeek" : { + "$ref" : "#/components/schemas/DayOfWeekRestriction", + "description" : "List of week days and the operation. Supported operations: **anyMatch**, **noneMatch**." + }, + "differentCurrencies" : { + "$ref" : "#/components/schemas/DifferentCurrenciesRestriction", + "description" : "Compares the currency of the payment against the currency of the payment instrument, and specifies the operation.\n\nSupported operations: **equals**, **notEquals**." + }, + "entryModes" : { + "$ref" : "#/components/schemas/EntryModesRestriction", + "description" : "List of point-of-sale entry modes and the operation..\n\nSupported operations: **anyMatch**, **noneMatch**." + }, + "internationalTransaction" : { + "$ref" : "#/components/schemas/InternationalTransactionRestriction", + "description" : "Indicates whether transaction is an international transaction and specifies the operation.\n\nSupported operations: **equals**, **notEquals**." + }, + "matchingTransactions" : { + "$ref" : "#/components/schemas/MatchingTransactionsRestriction", + "description" : "The number of transactions and the operation.\n\nSupported operations: **equals**, **notEquals**, **greaterThanOrEqualTo**, **greaterThan**, **lessThanOrEqualTo**, **lessThan**." + }, + "matchingValues" : { + "$ref" : "#/components/schemas/MatchingValuesRestriction", + "description" : "Checks if a user has recently made multiple transfers with the specified values.\n\nTo use this restriction, you must:\n\n- Set the rule `type` to **velocity**.\n\n- Specify a time `interval`.\n\n- Specify a number of `matchingTransactions`.\n\nSupported operation: **allMatch**.\n\nSupported value inputs:\n- **merchantId** and **acquirerId**\n- **amount** and **currency**\n- **merchantName**." + }, + "mccs" : { + "$ref" : "#/components/schemas/MccsRestriction", + "description" : "List of merchant category codes (MCCs) and the operation.\n\nSupported operations: **anyMatch**, **noneMatch**." + }, + "merchantNames" : { + "$ref" : "#/components/schemas/MerchantNamesRestriction", + "description" : "List of names that will be compared to the merchant name according to the matching type.\n\nSupported operations: **anyMatch**, **noneMatch**." + }, + "merchants" : { + "$ref" : "#/components/schemas/MerchantsRestriction", + "description" : "List of merchant ID and acquirer ID pairs, and the operation.\n\nSupported operations: **anyMatch**, **noneMatch**." + }, + "processingTypes" : { + "$ref" : "#/components/schemas/ProcessingTypesRestriction", + "description" : "List of processing types and the operation.\n\nSupported operations: **anyMatch**, **noneMatch**." + }, + "riskScores" : { + "$ref" : "#/components/schemas/RiskScoresRestriction", + "description" : "Risk scores provided by specific sources. The same operation applies to all scores.\n\nCurrent sources available: **visa**, **mastercard**\n\nSupported operations: **equals**, **notEquals**, **greaterThanOrEqualTo**, **greaterThan**, **lessThanOrEqualTo**, **lessThan**." + }, + "sameAmountRestriction" : { + "$ref" : "#/components/schemas/SameAmountRestriction", + "description" : "Checks if a user has recently sent the same amount of funds in multiple transfers.\n\nTo use this restriction, you must:\n\n- Set the rule `type` to **velocity**.\n\n- Specify a time `interval`.\n\n- Specify a number of `matchingTransactions`.\n\nSupported operation: **equals**." + }, + "sameCounterpartyRestriction" : { + "$ref" : "#/components/schemas/SameCounterpartyRestriction", + "description" : "Checks if a user has recently made multiple transfers to the same counterparty.\n\nTo use this restriction, you must:\n\n- Set the rule `type` to **velocity**.\n\n- Specify a time `interval`.\n\n- Specify a number of `matchingTransactions`.\n\nSupported operations: **equals**." + }, + "sourceAccountTypes" : { + "$ref" : "#/components/schemas/SourceAccountTypesRestriction", + "description" : "Contains a list of source account types and how they must be evaluated.\n\nSupported operations: **anyMatch**, **noneMatch**.\n\nSupported value inputs:\n- **balanceAccount**\n- **businessAccount**." + }, + "timeOfDay" : { + "$ref" : "#/components/schemas/TimeOfDayRestriction", + "description" : "A start and end time in a time-only ISO-8601 extended offset format. Supported operations: **equals**, **notEquals**." + }, + "tokenRequestors" : { + "$ref" : "#/components/schemas/TokenRequestorsRestriction", + "description" : "List of token requestor IDs and the operation.\n\nSupported operations: **anyMatch**, **noneMatch**." + }, + "totalAmount" : { + "$ref" : "#/components/schemas/TotalAmountRestriction", + "description" : "The total amount and the operation.\n\nSupported operations: **equals**, **notEquals**, **greaterThanOrEqualTo**, **greaterThan**, **lessThanOrEqualTo**, **lessThan**." + } + } + }, + "TransactionRulesResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "transactionRules" : { + "type" : "array", + "description" : "List of transaction rules.", + "items" : { + "$ref" : "#/components/schemas/TransactionRule" + } + } + } + }, + "TransferRoute" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "category" : { + "type" : "string", + "description" : " The type of transfer.\n\n Possible values:\n\n - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account.\n", + "enum" : [ "bank", "card", "grants", "internal", "issuedCard", "migration", "platformPayment", "topUp", "upgrade" ] + }, + "country" : { + "type" : "string", + "description" : "The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**." + }, + "currency" : { + "type" : "string", + "description" : "The three-character ISO currency code of transfer. For example, **USD** or **EUR**." + }, + "priority" : { + "type" : "string", + "description" : "The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values:\n\n* **regular**: for normal, low-value transactions.\n\n* **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.\n\n* **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.\n\n* **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).\n\n* **crossBorder**: for high-value transfers to a recipient in a different country.\n\n* **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).", + "enum" : [ "crossBorder", "fast", "instant", "internal", "regular", "wire" ] + }, + "requirements" : { + "type" : "array", + "description" : "A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`.", + "items" : { + "oneOf" : [ { + "$ref" : "#/components/schemas/AddressRequirement" + }, { + "$ref" : "#/components/schemas/AmountMinMaxRequirement" + }, { + "$ref" : "#/components/schemas/AmountNonZeroDecimalsRequirement" + }, { + "$ref" : "#/components/schemas/BankAccountIdentificationTypeRequirement" + }, { + "$ref" : "#/components/schemas/IbanAccountIdentificationRequirement" + }, { + "$ref" : "#/components/schemas/PaymentInstrumentRequirement" + }, { + "$ref" : "#/components/schemas/USInstantPayoutAddressRequirement" + }, { + "$ref" : "#/components/schemas/USInternationalAchAddressRequirement" + } ] + } + } + } + }, + "TransferRouteRequest" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "balanceAccountId" : { + "type" : "string", + "description" : "The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).\nRequired if `counterparty` is **transferInstrumentId**." + }, + "balancePlatform" : { + "type" : "string", + "description" : "The unique identifier assigned to the balance platform associated with the account holder." + }, + "category" : { + "type" : "string", + "description" : " The type of transfer. Possible values:\n\n - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account.\n", + "enum" : [ "bank" ] + }, + "counterparty" : { + "$ref" : "#/components/schemas/Counterparty", + "description" : "The recipient of the funds transfer. A bank account or a transfer instrument." + }, + "country" : { + "type" : "string", + "description" : "The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**.\n > Either `counterparty` or `country` field must be provided in a transfer route request." + }, + "currency" : { + "type" : "string", + "description" : "The three-character ISO currency code of transfer. For example, **USD** or **EUR**." + }, + "priorities" : { + "type" : "array", + "description" : "The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided.\nPossible values:\n\n* **regular**: for normal, low-value transactions.\n\n* **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.\n\n* **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.\n\n* **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).\n\n* **crossBorder**: for high-value transfers to a recipient in a different country.\n\n* **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).", + "items" : { + "type" : "string", + "enum" : [ "crossBorder", "fast", "instant", "internal", "regular", "wire" ] + } + } + }, + "required" : [ "balancePlatform", "category", "currency" ] + }, + "TransferRouteResponse" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "transferRoutes" : { + "type" : "array", + "description" : "List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer.", + "items" : { + "$ref" : "#/components/schemas/TransferRoute" + } + } + } + }, + "UKLocalAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The 8-digit bank account number, without separators or whitespace.", + "maxLength" : 8, + "minLength" : 8 + }, + "sortCode" : { + "type" : "string", + "description" : "The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace.", + "maxLength" : 6, + "minLength" : 6 + }, + "type" : { + "type" : "string", + "default" : "ukLocal", + "description" : "**ukLocal**", + "enum" : [ "ukLocal" ] + } + }, + "required" : [ "accountNumber", "sortCode", "type" ] + }, + "USInstantPayoutAddressRequirement" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "description" : { + "type" : "string", + "description" : "Specifies that you must provide complete street addresses for the party and counterParty for transactions greater than USD 3000." + }, + "type" : { + "type" : "string", + "default" : "usInstantPayoutAddressRequirement", + "description" : "**usInstantPayoutAddressRequirement**", + "enum" : [ "usInstantPayoutAddressRequirement" ] + } + }, + "required" : [ "type" ] + }, + "USInternationalAchAddressRequirement" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "description" : { + "type" : "string", + "description" : "Specifies that you must provide a complete street address for International ACH (IAT) transactions." + }, + "type" : { + "type" : "string", + "default" : "usInternationalAchAddressRequirement", + "description" : "**usInternationalAchAddressRequirement**", + "enum" : [ "usInternationalAchAddressRequirement" ] + } + }, + "required" : [ "type" ] + }, + "USLocalAccountIdentification" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "accountNumber" : { + "type" : "string", + "description" : "The bank account number, without separators or whitespace.", + "maxLength" : 18, + "minLength" : 2 + }, + "accountType" : { + "type" : "string", + "default" : "checking", + "description" : "The bank account type.\n\nPossible values: **checking** or **savings**. Defaults to **checking**.", + "enum" : [ "checking", "savings" ] + }, + "routingNumber" : { + "type" : "string", + "description" : "The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace.", + "maxLength" : 9, + "minLength" : 9 + }, + "type" : { + "type" : "string", + "default" : "usLocal", + "description" : "**usLocal**", + "enum" : [ "usLocal" ] + } + }, + "required" : [ "accountNumber", "routingNumber", "type" ] + }, + "UpdateNetworkTokenRequest" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "status" : { + "type" : "string", + "description" : "The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed.", + "enum" : [ "active", "suspended", "closed" ] + } + } + }, + "UpdatePaymentInstrument" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "additionalBankAccountIdentifications" : { + "type" : "array", + "deprecated" : true, + "description" : "Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**.", + "items" : { + "oneOf" : [ { + "$ref" : "#/components/schemas/IbanAccountIdentification" + } ] + }, + "x-deprecatedInVersion" : "2", + "x-deprecatedMessage" : "Please use `bankAccount` object instead" + }, + "balanceAccountId" : { + "type" : "string", + "description" : "The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument." + }, + "bankAccount" : { + "$ref" : "#/components/schemas/BankAccountDetails", + "description" : "Contains the business account details. Returned when you create a payment instrument with `type` **bankAccount**." + }, + "card" : { + "$ref" : "#/components/schemas/Card", + "description" : "Contains information about the card payment instrument. Returned when you create a payment instrument with `type` **card**." + }, + "description" : { + "type" : "string", + "description" : "Your description for the payment instrument, maximum 300 characters.", + "maxLength" : 300 + }, + "id" : { + "type" : "string", + "description" : "The unique identifier of the payment instrument." + }, + "issuingCountryCode" : { + "type" : "string", + "description" : "The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**." + }, + "paymentInstrumentGroupId" : { + "type" : "string", + "description" : "The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs." + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the payment instrument, maximum 150 characters.", + "maxLength" : 150 + }, + "status" : { + "type" : "string", + "description" : "The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**.\n\nPossible values: \n\n * **active**: The payment instrument is active and can be used to make payments. \n\n * **inactive**: The payment instrument is inactive and cannot be used to make payments. \n\n * **suspended**: The payment instrument is suspended, either because it was stolen or lost. \n\n * **closed**: The payment instrument is permanently closed. This action cannot be undone. \n\n", + "enum" : [ "active", "closed", "inactive", "suspended" ] + }, + "statusComment" : { + "type" : "string", + "description" : "Comment for the status of the payment instrument.\n\nRequired if `statusReason` is **other**.", + "x-addedInVersion" : "2" + }, + "statusReason" : { + "type" : "string", + "description" : "The reason for the status of the payment instrument.\n\nPossible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**.\nIf the reason is **other**, you must also send the `statusComment` parameter describing the status change.", + "enum" : [ "accountClosure", "damaged", "endOfLife", "expired", "lost", "other", "stolen", "suspectedFraud", "transactionRule" ], + "x-addedInVersion" : "2" + }, + "type" : { + "type" : "string", + "description" : "The type of payment instrument.\n\nPossible values: **card**, **bankAccount**.", + "enum" : [ "bankAccount", "card" ] + } + }, + "required" : [ "balanceAccountId", "id", "issuingCountryCode", "type" ] + }, + "UpdateSweepConfigurationV2" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "category" : { + "type" : "string", + "description" : "The type of transfer that results from the sweep.\n\nPossible values:\n\n - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).\n\n- **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform.\n\nRequired when setting `priorities`.", + "enum" : [ "bank", "internal", "platformPayment" ], + "x-addedInVersion" : "2" + }, + "counterparty" : { + "$ref" : "#/components/schemas/SweepCounterparty", + "description" : "The destination or the source of the funds, depending on the sweep `type`.\n\nEither a `balanceAccountId`, `transferInstrumentId`, or `merchantAccount` is required." + }, + "currency" : { + "type" : "string", + "description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**.\n\nThe sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances)." + }, + "description" : { + "type" : "string", + "description" : "The message that will be used in the sweep transfer's description body with a maximum length of 140 characters.\n\nIf the message is longer after replacing placeholders, the message will be cut off at 140 characters." + }, + "id" : { + "type" : "string", + "description" : "The unique identifier of the sweep.", + "readOnly" : true + }, + "priorities" : { + "type" : "array", + "description" : "The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities.\n\nPossible values:\n\n* **regular**: for normal, low-value transactions.\n\n* **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions.\n\n* **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions.\n\n* **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html).\n\n* **crossBorder**: for high-value transfers to a recipient in a different country.\n\n* **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).\n\nSet `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).", + "items" : { + "type" : "string", + "enum" : [ "crossBorder", "fast", "instant", "internal", "regular", "wire" ] + }, + "x-addedInVersion" : "2" + }, + "reason" : { + "type" : "string", + "description" : "The reason for disabling the sweep.", + "enum" : [ "accountHierarchyNotActive", "amountLimitExceeded", "approved", "balanceAccountTemporarilyBlockedByTransactionRule", "counterpartyAccountBlocked", "counterpartyAccountClosed", "counterpartyAccountNotFound", "counterpartyAddressRequired", "counterpartyBankTimedOut", "counterpartyBankUnavailable", "declined", "declinedByTransactionRule", "directDebitNotSupported", "error", "notEnoughBalance", "pending", "pendingApproval", "pendingExecution", "refusedByCounterpartyBank", "refusedByCustomer", "routeNotFound", "scaFailed", "transferInstrumentDoesNotExist", "unknown" ], + "readOnly" : true + }, + "reasonDetail" : { + "type" : "string", + "description" : "The human readable reason for disabling the sweep.", + "readOnly" : true + }, + "reference" : { + "type" : "string", + "description" : "Your reference for the sweep configuration.", + "maxLength" : 80 + }, + "referenceForBeneficiary" : { + "type" : "string", + "description" : "The reference sent to or received from the counterparty. Only alphanumeric characters are allowed.", + "maxLength" : 80 + }, + "schedule" : { + "$ref" : "#/components/schemas/SweepSchedule", + "description" : "The schedule when the `triggerAmount` is evaluated. If the balance meets the threshold, funds are pushed out of or pulled in to the balance account." + }, + "status" : { + "type" : "string", + "description" : "The status of the sweep. If not provided, by default, this is set to **active**.\n\nPossible values: \n\n * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. \n\n * **inactive**: the sweep is disabled and cannot be triggered. \n\n", + "enum" : [ "active", "inactive" ] + }, + "sweepAmount" : { + "$ref" : "#/components/schemas/Amount", + "description" : "The amount that must be pushed out or pulled in. You can configure either `sweepAmount` or `targetAmount`, not both." + }, + "targetAmount" : { + "$ref" : "#/components/schemas/Amount", + "description" : "The amount that must be available in the balance account after the sweep. You can configure either `sweepAmount` or `targetAmount`, not both." + }, + "triggerAmount" : { + "$ref" : "#/components/schemas/Amount", + "description" : "The threshold amount that triggers the sweep. If not provided, by default, the amount is set to zero. The `triggerAmount` is evaluated according to the specified `schedule.type`.\n\n* For `type` **pull**, if the balance is less than or equal to the `triggerAmount`, funds are pulled in to the balance account.\n\n* For `type` **push**, if the balance is more than or equal to the `triggerAmount`, funds are pushed out of the balance account." + }, + "type" : { + "type" : "string", + "default" : "push", + "description" : "The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**.\n\nPossible values:\n\n * **push**: _push out funds_ to a destination balance account or transfer instrument.\n\n * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.", + "enum" : [ "pull", "push" ] + } + } + }, + "VerificationDeadline" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "capabilities" : { + "type" : "array", + "description" : "The names of the capabilities to be disallowed.", + "items" : { + "type" : "string", + "enum" : [ "acceptExternalFunding", "acceptPspFunding", "acceptTransactionInRestrictedCountries", "acceptTransactionInRestrictedCountriesCommercial", "acceptTransactionInRestrictedCountriesConsumer", "acceptTransactionInRestrictedIndustries", "acceptTransactionInRestrictedIndustriesCommercial", "acceptTransactionInRestrictedIndustriesConsumer", "acquiring", "atmWithdrawal", "atmWithdrawalCommercial", "atmWithdrawalConsumer", "atmWithdrawalInRestrictedCountries", "atmWithdrawalInRestrictedCountriesCommercial", "atmWithdrawalInRestrictedCountriesConsumer", "authorisedPaymentInstrumentUser", "getGrantOffers", "issueBankAccount", "issueCard", "issueCardCommercial", "issueCardConsumer", "issueChargeCard", "issueChargeCardCommercial", "issueCreditLimit", "localAcceptance", "payout", "payoutToTransferInstrument", "processing", "receiveFromBalanceAccount", "receiveFromPlatformPayments", "receiveFromThirdParty", "receiveFromTransferInstrument", "receiveGrants", "receivePayments", "sendToBalanceAccount", "sendToThirdParty", "sendToTransferInstrument", "thirdPartyFunding", "useCard", "useCardCommercial", "useCardConsumer", "useCardInRestrictedCountries", "useCardInRestrictedCountriesCommercial", "useCardInRestrictedCountriesConsumer", "useCardInRestrictedIndustries", "useCardInRestrictedIndustriesCommercial", "useCardInRestrictedIndustriesConsumer", "useChargeCard", "useChargeCardCommercial", "withdrawFromAtm", "withdrawFromAtmCommercial", "withdrawFromAtmConsumer", "withdrawFromAtmInRestrictedCountries", "withdrawFromAtmInRestrictedCountriesCommercial", "withdrawFromAtmInRestrictedCountriesConsumer" ] + }, + "readOnly" : true + }, + "entityIds" : { + "type" : "array", + "description" : "The unique identifiers of the bank account(s) that the deadline applies to", + "items" : { + "type" : "string" + }, + "readOnly" : true + }, + "expiresAt" : { + "type" : "string", + "format" : "date-time", + "description" : "The date that verification is due by before capabilities are disallowed.", + "readOnly" : true + } + }, + "required" : [ "capabilities", "expiresAt" ] + }, + "VerificationError" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "capabilities" : { + "type" : "array", + "description" : "Contains the capabilities that the verification error applies to.", + "items" : { + "type" : "string", + "enum" : [ "acceptExternalFunding", "acceptPspFunding", "acceptTransactionInRestrictedCountries", "acceptTransactionInRestrictedCountriesCommercial", "acceptTransactionInRestrictedCountriesConsumer", "acceptTransactionInRestrictedIndustries", "acceptTransactionInRestrictedIndustriesCommercial", "acceptTransactionInRestrictedIndustriesConsumer", "acquiring", "atmWithdrawal", "atmWithdrawalCommercial", "atmWithdrawalConsumer", "atmWithdrawalInRestrictedCountries", "atmWithdrawalInRestrictedCountriesCommercial", "atmWithdrawalInRestrictedCountriesConsumer", "authorisedPaymentInstrumentUser", "getGrantOffers", "issueBankAccount", "issueCard", "issueCardCommercial", "issueCardConsumer", "issueChargeCard", "issueChargeCardCommercial", "issueCreditLimit", "localAcceptance", "payout", "payoutToTransferInstrument", "processing", "receiveFromBalanceAccount", "receiveFromPlatformPayments", "receiveFromThirdParty", "receiveFromTransferInstrument", "receiveGrants", "receivePayments", "sendToBalanceAccount", "sendToThirdParty", "sendToTransferInstrument", "thirdPartyFunding", "useCard", "useCardCommercial", "useCardConsumer", "useCardInRestrictedCountries", "useCardInRestrictedCountriesCommercial", "useCardInRestrictedCountriesConsumer", "useCardInRestrictedIndustries", "useCardInRestrictedIndustriesCommercial", "useCardInRestrictedIndustriesConsumer", "useChargeCard", "useChargeCardCommercial", "withdrawFromAtm", "withdrawFromAtmCommercial", "withdrawFromAtmConsumer", "withdrawFromAtmInRestrictedCountries", "withdrawFromAtmInRestrictedCountriesCommercial", "withdrawFromAtmInRestrictedCountriesConsumer" ] + } + }, + "code" : { + "type" : "string", + "description" : "The verification error code." + }, + "message" : { + "type" : "string", + "description" : "A description of the error." + }, + "remediatingActions" : { + "type" : "array", + "description" : "Contains the actions that you can take to resolve the verification error.", + "items" : { + "$ref" : "#/components/schemas/RemediatingAction" + } + }, + "subErrors" : { + "type" : "array", + "description" : "Contains more granular information about the verification error.", + "items" : { + "$ref" : "#/components/schemas/VerificationError-recursive" + } + }, + "type" : { + "type" : "string", + "description" : "The type of error.\n\n Possible values: **invalidInput**, **dataMissing**.", + "enum" : [ "dataMissing", "invalidInput", "pendingStatus" ] + } + } + }, + "VerificationError-recursive" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "capabilities" : { + "type" : "array", + "description" : "Contains the capabilities that the verification error applies to.", + "items" : { + "type" : "string", + "enum" : [ "acceptExternalFunding", "acceptPspFunding", "acceptTransactionInRestrictedCountries", "acceptTransactionInRestrictedCountriesCommercial", "acceptTransactionInRestrictedCountriesConsumer", "acceptTransactionInRestrictedIndustries", "acceptTransactionInRestrictedIndustriesCommercial", "acceptTransactionInRestrictedIndustriesConsumer", "acquiring", "atmWithdrawal", "atmWithdrawalCommercial", "atmWithdrawalConsumer", "atmWithdrawalInRestrictedCountries", "atmWithdrawalInRestrictedCountriesCommercial", "atmWithdrawalInRestrictedCountriesConsumer", "authorisedPaymentInstrumentUser", "getGrantOffers", "issueBankAccount", "issueCard", "issueCardCommercial", "issueCardConsumer", "issueChargeCard", "issueChargeCardCommercial", "issueCreditLimit", "localAcceptance", "payout", "payoutToTransferInstrument", "processing", "receiveFromBalanceAccount", "receiveFromPlatformPayments", "receiveFromThirdParty", "receiveFromTransferInstrument", "receiveGrants", "receivePayments", "sendToBalanceAccount", "sendToThirdParty", "sendToTransferInstrument", "thirdPartyFunding", "useCard", "useCardCommercial", "useCardConsumer", "useCardInRestrictedCountries", "useCardInRestrictedCountriesCommercial", "useCardInRestrictedCountriesConsumer", "useCardInRestrictedIndustries", "useCardInRestrictedIndustriesCommercial", "useCardInRestrictedIndustriesConsumer", "useChargeCard", "useChargeCardCommercial", "withdrawFromAtm", "withdrawFromAtmCommercial", "withdrawFromAtmConsumer", "withdrawFromAtmInRestrictedCountries", "withdrawFromAtmInRestrictedCountriesCommercial", "withdrawFromAtmInRestrictedCountriesConsumer" ] + } + }, + "code" : { + "type" : "string", + "description" : "The verification error code." + }, + "message" : { + "type" : "string", + "description" : "A description of the error." + }, + "type" : { + "type" : "string", + "description" : "The type of error.\n\n Possible values: **invalidInput**, **dataMissing**.", + "enum" : [ "dataMissing", "invalidInput", "pendingStatus" ] + }, + "remediatingActions" : { + "type" : "array", + "description" : "Contains the actions that you can take to resolve the verification error.", + "items" : { + "$ref" : "#/components/schemas/RemediatingAction" + } + } + } + }, + "BalanceWebhookSettingsRequest" : { + "type" : "object", + "properties" : { + "conditions" : { + "type" : "array", + "description" : "The array of conditions a balance change must meet for Adyen to send the webhook.", + "items" : { + "$ref" : "#/components/schemas/Condition" + }, + "maxItems" : 20, + "minItems" : 0 + }, + "currency" : { + "type" : "string", + "description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance." + }, + "status" : { + "type" : "string", + "description" : "The status of the webhook setting. Possible values:\n\n* **active**: You receive a balance webhook if any of the conditions in this setting are met.\n* **inactive**: You do not receive a balance webhook even if the conditions in this settings are met.", + "enum" : [ "active", "inactive" ] + }, + "target" : { + "$ref" : "#/components/schemas/Target", + "description" : "The type and ID of the resource about whose balance changes you want to be notified." + }, + "type" : { + "type" : "string", + "description" : "The type of the webhook you are configuring. Set to **balance**.", + "enum" : [ "balance" ] + } + }, + "required" : [ "currency", "status", "target", "type" ] + }, + "Condition" : { + "type" : "object", + "properties" : { + "balanceType" : { + "type" : "string", + "description" : "Define the type of balance about which you want to get notified. Possible values:\n\n* **available**: the balance available for use.\n\n* **balance**: the sum of transactions that have already been settled.\n\n* **pending**: the sum of transactions that will be settled in the future.\n\n* **reserved**: the balance currently held in reserve.", + "enum" : [ "balance", "available", "pending", "reserved" ] + }, + "conditionType" : { + "type" : "string", + "description" : "Define when you want to get notified about a balance change. Possible values:\n\n* **greaterThan**: the balance in the account(s) exceeds the specified `value`.\n\n* **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`.\n\n* **lessThan**: the balance in the account(s) drops below the specified `value`.\n\n* **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`.", + "enum" : [ "greaterThan", "greaterThanOrEqual", "lessThan", "lessThanOrEqual" ] + }, + "value" : { + "type" : "integer", + "format" : "int64", + "description" : "The value limit in the specified balance type and currency, in minor units." + } + }, + "required" : [ "balanceType", "conditionType", "value" ] + }, + "SettingStatus" : { + "type" : "string", + "x-extensible-enum" : [ "active", "inactive" ] + }, + "Target" : { + "type" : "object", + "properties" : { + "id" : { + "type" : "string", + "description" : "The unique identifier of the `target.type`. This can be the ID of your:\n\n* balance platform\n* account holder\n* account holder's balance account" + }, + "type" : { + "type" : "string", + "description" : "The resource for which you want to receive notifications. Possible values:\n\n* **balancePlatform**: receive notifications about balance changes in your entire balance platform.\n\n* **accountHolder**: receive notifications about balance changes of a specific user.\n\n* **balanceAccount**: receive notifications about balance changes in a specific balance account.", + "enum" : [ "balanceAccount", "accountHolder", "balancePlatform" ] + } + }, + "required" : [ "id", "type" ] + }, + "BalanceWebhookSettingsResponse" : { + "type" : "object", + "allOf" : [ { + "$ref" : "#/components/schemas/WebhookSettingResponse" + }, { + "type" : "object", + "properties" : { + "conditions" : { + "type" : "array", + "description" : "The list of settings and criteria for triggering the [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balancePlatform.balanceAccount.balance.updated).", + "items" : { + "$ref" : "#/components/schemas/Condition" + } + } + } + } ], + "required" : [ "currency", "id", "status", "target", "type" ] + }, + "SettingType" : { + "type" : "string", + "enum" : [ "balance" ] + }, + "WebhookSettingResponse" : { + "type" : "object", + "discriminator" : { + "propertyName" : "type", + "mapping" : { + "balance" : "#/components/schemas/BalanceWebhookSettingsResponse" + } + }, + "properties" : { + "currency" : { + "type" : "string", + "description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance." + }, + "id" : { + "type" : "string", + "description" : "The unique identifier of the webhook setting." + }, + "status" : { + "$ref" : "#/components/schemas/SettingStatus", + "description" : "The status of the webhook setting. Possible values:\n\n* **active**: You receive a balance webhook if any of the conditions in this setting are met.\n* **inactive**: You do not receive a balance webhook even if the conditions in this settings are met." + }, + "target" : { + "$ref" : "#/components/schemas/Target", + "description" : "The resource about whose balance change you want to get notified." + }, + "type" : { + "$ref" : "#/components/schemas/SettingType", + "description" : "The type of the webhook setting." + } + }, + "required" : [ "currency", "id", "status", "target", "type" ] + }, + "DefaultErrorResponseEntity" : { + "type" : "object", + "description" : "Standardized error response following RFC-7807 format", + "externalDocs" : { + "url" : "https://www.rfc-editor.org/rfc/rfc7807" + }, + "properties" : { + "detail" : { + "type" : "string", + "description" : "A human-readable explanation specific to this occurrence of the problem." + }, + "errorCode" : { + "type" : "string", + "description" : "Unique business error code." + }, + "instance" : { + "type" : "string", + "description" : "A URI that identifies the specific occurrence of the problem if applicable." + }, + "invalidFields" : { + "type" : "array", + "description" : "Array of fields with validation errors when applicable.", + "items" : { + "$ref" : "#/components/schemas/InvalidField" + } + }, + "requestId" : { + "type" : "string", + "description" : "The unique reference for the request." + }, + "status" : { + "type" : "integer", + "format" : "int32", + "description" : "The HTTP status code." + }, + "title" : { + "type" : "string", + "description" : "A short, human-readable summary of the problem type." + }, + "type" : { + "type" : "string", + "description" : "A URI that identifies the validation error type. It points to human-readable documentation for the problem type." + } + } + }, + "PatchableBalanceWebhookSettingsRequest" : { + "type" : "object", + "properties" : { + "conditions" : { + "type" : [ "array", "null" ], + "description" : "The array of conditions a balance change must meet for Adyen to send the webhook.", + "items" : { + "$ref" : "#/components/schemas/Condition" + }, + "maxItems" : 20, + "minItems" : 0 + }, + "currency" : { + "type" : "string", + "description" : "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance." + }, + "status" : { + "type" : "string", + "description" : "The status of the webhook setting. Possible values:\n\n* **active**: You receive a balance webhook if any of the conditions in this setting are met.\n* **inactive**: You do not receive a balance webhook even if the conditions in this settings are met.", + "enum" : [ "active", "inactive" ] + }, + "target" : { + "$ref" : "#/components/schemas/PatchableTarget", + "description" : "The type and ID of the resource about whose balance changes you want to be notified." + }, + "type" : { + "type" : "string", + "description" : "The type of the webhook you are configuring. Set to **balance**.", + "enum" : [ "balance" ] + } + } + }, + "PatchableTarget" : { + "type" : "object", + "properties" : { + "id" : { + "type" : "string", + "description" : "The unique identifier of the `target.type`. This can be the ID of your:\n\n* balance platform\n* account holder\n* account holder's balance account" + }, + "type" : { + "type" : "string", + "description" : "The resource for which you want to receive notifications. Possible values:\n\n* **balancePlatform**: receive notifications about balance changes in your entire balance platform.\n\n* **accountHolder**: receive notifications about balance changes of a specific user.\n\n* **balanceAccount**: receive notifications about balance changes in a specific balance account.", + "enum" : [ "balanceAccount", "accountHolder", "balancePlatform" ] + } + } + } + }, + "examples" : { + "delete-transactionRules-transactionRuleId-success-200" : { + "summary" : "Transaction rule deleted", + "description" : "Example response for successfully deleting a transaction rule", + "value" : { + "aggregationLevel" : "paymentInstrument", + "description" : "Up to 1000 EUR per card for the last 12 hours", + "entityKey" : { + "entityReference" : "PG3227C223222C5GXR3M5592Q", + "entityType" : "paymentInstrumentGroup" + }, + "interval" : { + "duration" : { + "unit" : "hours", + "value" : 12 + }, + "timeZone" : "UTC", + "type" : "sliding" + }, + "outcomeType" : "hardBlock", + "reference" : "myRule12345", + "requestType" : "authorization", + "ruleRestrictions" : { + "totalAmount" : { + "operation" : "greaterThan", + "value" : { + "currency" : "EUR", + "value" : 100000 + } + } + }, + "type" : "velocity", + "id" : "TR3227C223222C5GXT3DD5VCF" + } + }, + "generic-400" : { + "summary" : "Response code - 400 Bad request", + "value" : { + "type" : "https://docs.adyen.com/errors/general/bad-request", + "title" : "Bad request", + "status" : 400, + "detail" : "Empty input which would have resulted in a null result.", + "errorCode" : "00_400" + } + }, + "generic-401" : { + "summary" : "Response code - 401 Unauthorized", + "value" : { + "type" : "https://docs.adyen.com/errors/security/unauthorized", + "title" : "Unauthorized", + "status" : 401, + "detail" : "Not authorized to access this service.", + "errorCode" : "00_401" + } + }, + "generic-403" : { + "summary" : "Response code - 403 Forbidden.", + "value" : { + "type" : "https://docs.adyen.com/errors/security/unauthorized", + "title" : "Forbidden", + "status" : 403, + "detail" : "Not the right permission to access this service.", + "errorCode" : "00_403" + } + }, + "generic-404" : { + "summary" : "Response code 404 - Not found", + "value" : { + "type" : "https://docs.adyen.com/errors/general/not-found", + "title" : "Not found", + "status" : 404, + "detail" : "Service not found.", + "errorCode" : "00_404" + } + }, + "generic-422" : { + "summary" : "Response code - 422 Unprocessable Entity.", + "value" : { + "type" : "https://docs.adyen.com/errors/general/invalid-field-value", + "title" : "Invalid Payment Instrument information provided", + "status" : 422, + "detail" : "The balanceAccountId can only be changed when the status is Inactive or Requested", + "requestId" : "1W1UI15PLVGC9V8O", + "errorCode" : "30_031" + } + }, + "generic-500" : { + "summary" : "Response code - 500 Internal Server Error", + "value" : { + "type" : "https://docs.adyen.com/errors/general/internal", + "title" : "An internal error happened", + "status" : 500, + "detail" : "Unrecoverable error while trying to create payment instrument", + "requestId" : "1WAF555PLWNTLYOQ", + "errorCode" : "00_500" + } + }, + "generic-503" : { + "summary" : "Response code - 503 Internal Server Error", + "value" : { + "type" : "https://docs.adyen.com/errors/general/processing-error", + "title" : "Error processing request", + "status" : 500, + "detail" : "Error while determining the payment instrument workflow", + "requestId" : "1W1UHY5O2CONU4R7", + "errorCode" : "99_500" + } + }, + "get-accountHolders-id-balanceAccounts-success-200" : { + "summary" : "List of balance accounts retrieved", + "description" : "Example response when retrieving a list of balance accounts under an account holder", + "value" : { + "balanceAccounts" : [ { + "accountHolderId" : "AH32272223222B5CTBMZT6W2V", + "defaultCurrencyCode" : "EUR", + "description" : "S. Hopper - Main Account", + "reference" : "YOUR_REFERENCE-X173L", + "timeZone" : "Europe/Amsterdam", + "id" : "BA32272223222B5CTDNB66W2Z", + "status" : "active" + }, { + "accountHolderId" : "AH32272223222B5CTBMZT6W2V", + "defaultCurrencyCode" : "EUR", + "description" : "S. Hopper - Main Account", + "reference" : "YOUR_REFERENCE-X173L", + "timeZone" : "Europe/Amsterdam", + "id" : "BA32272223222B5CTDQPM6W2H", + "status" : "active" + }, { + "accountHolderId" : "AH32272223222B5CTBMZT6W2V", + "defaultCurrencyCode" : "EUR", + "description" : "S. Hopper - Main Account", + "reference" : "YOUR_REFERENCE-X173L", + "timeZone" : "Europe/Amsterdam", + "id" : "BA32272223222B5CVF5J63LMW", + "status" : "active" + } ], + "hasNext" : true, + "hasPrevious" : false + } + }, + "get-accountHolders-id-success-200" : { + "summary" : "Account holder retrieved", + "description" : "Example response when retrieving an account holder", + "value" : { + "balancePlatform" : "YOUR_BALANCE_PLATFORM", + "description" : "Liable account holder used for international payments and payouts", + "legalEntityId" : "LE322JV223222D5GG42KN6869", + "reference" : "S.Eller-001", + "capabilities" : { + "receiveFromPlatformPayments" : { + "enabled" : true, + "requested" : true, + "allowed" : false, + "verificationStatus" : "pending" + }, + "receiveFromBalanceAccount" : { + "enabled" : true, + "requested" : true, + "allowed" : false, + "verificationStatus" : "pending" + }, + "sendToBalanceAccount" : { + "enabled" : true, + "requested" : true, + "allowed" : false, + "verificationStatus" : "pending" + }, + "sendToTransferInstrument" : { + "enabled" : true, + "requested" : true, + "allowed" : false, + "transferInstruments" : [ { + "enabled" : true, + "requested" : true, + "allowed" : false, + "id" : "SE322KH223222F5GXZFNM3BGP", + "verificationStatus" : "pending" + } ], + "verificationStatus" : "pending" + } + }, + "id" : "AH3227C223222C5GXQXF658WB", + "status" : "active" + } + }, + "get-accountHolders-id-taxForms-success-200" : { + "summary" : "Tax form retrieved for an account holder", + "description" : "Example response when retrieving a tax form for an account holder", + "value" : { + "content" : "JVBERi0xLjcKJcfsj6IKJSVJbnZvY2F0aW9uOiBwYXRoL2dzd2luNjQuZXhlIC1kRGlzcGxh", + "contentType" : "application/pdf" + } + }, + "get-balanceAccounts-balanceAccountId-sweeps-success-200" : { + "summary" : "Sweeps under a balance account retrieved", + "description" : "Example response when retrieving sweeps under a balance account", + "value" : { + "hasNext" : false, + "hasPrevious" : false, + "sweeps" : [ { + "id" : "SWPC4227C224555B5FTD2NT2JV4WN5", + "schedule" : { + "type" : "daily" + }, + "status" : "active", + "targetAmount" : { + "currency" : "EUR", + "value" : 0 + }, + "triggerAmount" : { + "currency" : "EUR", + "value" : 0 + }, + "type" : "push", + "counterparty" : { + "balanceAccountId" : "BA32272223222B5FTD2KR6TJD" + }, + "currency" : "EUR" + } ] + } + }, + "get-balanceAccounts-balanceAccountId-sweeps-sweepId-success-200" : { + "summary" : "Sweep retrieved", + "description" : "Example response when retrieving a sweep", + "value" : { + "id" : "SWPC4227C224555B5FTD2NT2JV4WN5", + "schedule" : { + "type" : "daily" + }, + "status" : "active", + "targetAmount" : { + "currency" : "EUR", + "value" : 0 + }, + "triggerAmount" : { + "currency" : "EUR", + "value" : 0 + }, + "type" : "push", + "counterparty" : { + "balanceAccountId" : "BA32272223222B5FTD2KR6TJD" + }, + "currency" : "EUR" + } + }, + "get-balanceAccounts-id-paymentInstruments-success-200" : { + "summary" : "List of payment instruments retrieved", + "description" : "Example response when retrieving a list of payment instruments under a balance account", + "value" : { + "hasNext" : true, + "hasPrevious" : false, + "paymentInstruments" : [ { + "balanceAccountId" : "BA32272223222B59CZ3T52DKZ", + "issuingCountryCode" : "GB", + "status" : "active", + "type" : "card", + "card" : { + "brand" : "mc", + "brandVariant" : "mc", + "cardholderName" : "name", + "formFactor" : "virtual", + "bin" : "555544", + "expiration" : { + "month" : "12", + "year" : "2022" + }, + "lastFour" : "2357", + "number" : "************2357" + }, + "id" : "PI32272223222B59M5TM658DT" + }, { + "balanceAccountId" : "BA32272223222B59CZ3T52DKZ", + "issuingCountryCode" : "GB", + "status" : "active", + "type" : "card", + "card" : { + "brand" : "mc", + "brandVariant" : "mc", + "cardholderName" : "name", + "formFactor" : "virtual", + "bin" : "555544", + "expiration" : { + "month" : "01", + "year" : "2023" + }, + "lastFour" : "8331", + "number" : "************8331" + }, + "id" : "PI32272223222B59PXDGQDLSF" + } ] + } + }, + "get-balanceAccounts-id-success-200" : { + "summary" : "Balance account details retrieved", + "description" : "Example response for retrieving a balance account", + "value" : { + "accountHolderId" : "AH32272223222B59K6RTQBFNZ", + "defaultCurrencyCode" : "EUR", + "timeZone" : "Europe/Amsterdam", + "balances" : [ { + "available" : 0, + "balance" : 0, + "currency" : "EUR", + "reserved" : 0, + "pending" : 0 + } ], + "id" : "BA3227C223222B5BLP6JQC3FD", + "status" : "active" + } + }, + "get-balancePlatforms-id-accountHolders-success-200" : { + "summary" : "List of account holders retrieved", + "description" : "Example response when retrieving a list of account holders under a balance platform", + "value" : { + "accountHolders" : [ { + "description" : "Test-305", + "legalEntityId" : "LE3227C223222D5D8S5S33M4M", + "reference" : "LegalEntity internal error test", + "id" : "AH32272223222B5GFSNSXFFL9", + "status" : "active" + }, { + "description" : "Test-751", + "legalEntityId" : "LE3227C223222D5D8S5TT3SRX", + "reference" : "LegalEntity internal error test", + "id" : "AH32272223222B5GFSNVGFFM7", + "status" : "active" + }, { + "description" : "Explorer Holder", + "legalEntityId" : "LE3227C223222D5D8S5TT3SRX", + "reference" : "Account from the Explorer Holder", + "id" : "AH32272223222B5GFWNRFFVR6", + "status" : "active" + } ], + "hasNext" : true, + "hasPrevious" : true + } + }, + "get-balancePlatforms-id-success-200" : { + "summary" : "Balance platform retrieved", + "description" : "Example response when retrieving a balance platform", + "value" : { + "id" : "YOUR_BALANCE_PLATFORM", + "status" : "Active" + } + }, + "get-cardorders-id-items-success-200" : { + "summary" : "Item list of a specific card order retrieved", + "description" : "Example response for retrieving the item list of a specific card order", + "value" : { + "data" : [ { + "card" : { + "status" : "shipped" + }, + "cardOrderItemId" : "UNIQUE_CARD_ORDER_ITEM_ID", + "paymentInstrumentId" : "UNIQUE_PAYMENT_INSTRUMENT_ID", + "pin" : { + "status" : "produced" + }, + "shippingMethod" : "Cardholder Post Basic National" + } ], + "hasNext" : false, + "hasPrevious" : false + } + }, + "get-cardorders-success-200" : { + "summary" : "List of card orders retrieved", + "description" : "Example response for retrieving a paginated list of card orders", + "value" : { + "cardOrders" : [ { + "beginDate" : "2022-12-05T00:00:00+01:00", + "cardManufacturingProfileId" : "UNIQUE_CARD_MANUFACTURER_PROFILE_ID", + "endDate" : "2022-12-06T00:00:00+01:00", + "id" : "UNIQUE_CARD_ORDER_ID", + "lockDate" : "2023-04-14T16:43:02+02:00", + "serviceCenter" : "IDEMIA Sittard", + "status" : "closed" + } ], + "hasNext" : true, + "hasPrevious" : false + } + }, + "get-paymentInstrumentGroups-id-success-200" : { + "summary" : "Payment instrument group retrieved", + "description" : "Example response when retrieving a payment instrument group", + "value" : { + "balancePlatform" : "YOUR_BALANCE_PLATFORM", + "txVariant" : "mc", + "id" : "PG3227C223222B5CMD3FJFKGZ" + } + }, + "get-paymentInstrumentGroups-id-transactionRules-success-200" : { + "summary" : "Transaction rules for a payment instrument group retrieved", + "description" : "Example response when retrieving a list of transaction rules applied to a payment instrument group", + "value" : { + "transactionRules" : [ { + "aggregationLevel" : "paymentInstrument", + "description" : "Up to 1000 EUR per card for the last 12 hours", + "entityKey" : { + "entityReference" : "PG3227C223222C5GXR3M5592Q", + "entityType" : "paymentInstrumentGroup" + }, + "interval" : { + "duration" : { + "unit" : "hours", + "value" : 12 + }, + "timeZone" : "UTC", + "type" : "sliding" + }, + "outcomeType" : "hardBlock", + "reference" : "YOUR_REFERENCE_2918A", + "requestType" : "authorization", + "ruleRestrictions" : { + "totalAmount" : { + "operation" : "greaterThan", + "value" : { + "currency" : "EUR", + "value" : 100000 + } + } + }, + "status" : "inactive", + "type" : "velocity", + "id" : "TR3227C223222C5GXR3XP596N" + }, { + "aggregationLevel" : "paymentInstrument", + "description" : "NL only", + "entityKey" : { + "entityReference" : "PG3227C223222C5GXR3M5592Q", + "entityType" : "paymentInstrumentGroup" + }, + "interval" : { + "duration" : { + "unit" : "hours", + "value" : 12 + }, + "timeZone" : "UTC", + "type" : "sliding" + }, + "outcomeType" : "hardBlock", + "reference" : "myRule12345", + "requestType" : "authorization", + "ruleRestrictions" : { + "totalAmount" : { + "operation" : "greaterThan", + "value" : { + "currency" : "EUR", + "value" : 100000 + } + } + }, + "status" : "inactive", + "type" : "velocity", + "id" : "TR3227C223222C5GXR3WC595H" + } ] + } + }, + "get-paymentInstruments-id-reveal-success-200" : { + "summary" : "Get the card's primary account number (PAN)", + "description" : "Example response for getting the card PAN", + "value" : { + "cvc" : "123", + "expiration" : { + "month" : "02", + "year" : "2026" + }, + "pan" : "5555444411209883" + } + }, + "get-paymentInstruments-id-success-200" : { + "summary" : "Payment instruments retrieved", + "description" : "Example response for retrieving payment instruments associated with a balance account", + "value" : { + "balanceAccountId" : "BA32272223222B59CZ3T52DKZ", + "description" : "S. Hopper - Main card", + "issuingCountryCode" : "GB", + "status" : "active", + "type" : "card", + "card" : { + "brand" : "mc", + "brandVariant" : "mcdebit", + "cardholderName" : "Simon Hopper", + "formFactor" : "virtual", + "bin" : "555544", + "expiration" : { + "month" : "01", + "year" : "2024" + }, + "lastFour" : "3548", + "number" : "************3548" + }, + "id" : "PI32272223222B5CMD3MQ3HXX" + } + }, + "get-paymentInstruments-id-transactionRules-success-200" : { + "summary" : "Transaction rules for a payment instrument retrieved", + "description" : "Example response when retrieving a list of transaction rules applied to a payment instrument", + "value" : { + "transactionRules" : [ { + "description" : "Only allow point-of-sale transactions", + "entityKey" : { + "entityReference" : "PI3227C223222B5FN65FN5NS9", + "entityType" : "paymentInstrument" + }, + "interval" : { + "timeZone" : "UTC", + "type" : "perTransaction" + }, + "outcomeType" : "hardBlock", + "reference" : "YOUR_REFERENCE_4F7346", + "requestType" : "authorization", + "ruleRestrictions" : { + "processingTypes" : { + "operation" : "noneMatch", + "value" : [ "pos" ] + } + }, + "startDate" : "2022-08-02T16:07:00.851374+02:00", + "status" : "active", + "type" : "blockList", + "id" : "TR32272223222B5GFSGFLFCHM" + }, { + "description" : "Set the maximum number of active network tokens to one for this card", + "entityKey" : { + "entityReference" : "PI3227C223222B5FN65FN5NS9", + "entityType" : "paymentInstrument" + }, + "interval" : { + "timeZone" : "UTC", + "type" : "perTransaction" + }, + "outcomeType" : "hardBlock", + "reference" : "myRule123", + "requestType" : "authorization", + "ruleRestrictions" : { + "activeNetworkTokens" : { + "operation" : "greaterThanOrEqualTo", + "value" : 1 + } + }, + "startDate" : "2022-10-03T14:48:28.999314+02:00", + "status" : "active", + "type" : "blockList", + "id" : "TR32272223222C5GQJ93L7J8Z" + } ] + } + }, + "get-publicKey-success-200" : { + "summary" : "Response with public key", + "value" : { + "publicKey" : "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMII...", + "publicKeyExpiryDate" : "2023-12-12" + } + }, + "get-transactionRules-transactionRuleId-success-200" : { + "summary" : "Transaction rules retrieved", + "description" : "Example response when retrieving a transaction rule", + "value" : { + "transactionRule" : { + "description" : "Only allow point-of-sale transactions", + "entityKey" : { + "entityReference" : "PI3227C223222B5FN65FN5NS9", + "entityType" : "paymentInstrument" + }, + "interval" : { + "timeZone" : "UTC", + "type" : "perTransaction" + }, + "outcomeType" : "hardBlock", + "reference" : "YOUR_REFERENCE_4F7346", + "requestType" : "authorization", + "ruleRestrictions" : { + "processingTypes" : { + "operation" : "noneMatch", + "value" : [ "pos" ] + } + }, + "startDate" : "2022-08-02T16:07:00.851374+02:00", + "status" : "active", + "type" : "blockList", + "id" : "TR32272223222B5GFSGFLFCHM" + } + } + }, + "patch-accountHolders-id-requestAccountHolderCapability" : { + "summary" : "Request account holder capability", + "description" : "Example request for the `receivePayments` capability for an account holder", + "value" : { + "description" : "Liable account holder used for international payments and payouts", + "reference" : "S.Eller-001", + "capabilities" : { + "receivePayments" : { + "requested" : true + } + } + } + }, + "patch-accountHolders-id-requestAccountHolderCapability-200" : { + "summary" : "Account holder capability requested", + "description" : "Example response for requesting the `receivePayments` capability for an account holder", + "value" : { + "balancePlatform" : "YOUR_BALANCE_PLATFORM", + "description" : "Liable account holder used for international payments and payouts", + "legalEntityId" : "LE322JV223222F5GKQZZ9DS99", + "reference" : "S.Eller-001", + "capabilities" : { + "receivePayments" : { + "enabled" : false, + "requested" : true, + "allowed" : false, + "verificationStatus" : "pending" + } + }, + "id" : "AH3227C223222C5GKR23686TF", + "status" : "active" + } + }, + "patch-accountHolders-id-updateAccountHolderStatus" : { + "summary" : "Deactivate an account holder", + "description" : "Example request for permanently deactivating an account holder", + "value" : { + "status" : "closed" + } + }, + "patch-accountHolders-id-updateAccountHolderStatus-200" : { + "summary" : "Account holder deactivated", + "description" : "Example response for permanently deactivating an account holder", + "value" : { + "balancePlatform" : "YOUR_BALANCE_PLATFORM", + "description" : "Liable account holder used for international payments and payouts", + "legalEntityId" : "LE322JV223222F5GKQZZ9DS99", + "reference" : "S.Eller-001", + "id" : "AH3227C223222C5GKR23686TF", + "status" : "closed" + } + }, + "patch-balanceAccounts-balanceAccountId-sweeps-sweepId-updateSweep-status" : { + "summary" : "Update the status of a sweep", + "description" : "Example request for updating a sweep", + "value" : { + "status" : "inactive" + } + }, + "patch-balanceAccounts-balanceAccountId-sweeps-sweepId-updateSweep-status-200" : { + "summary" : "Sweep status updated", + "description" : "Example response for updating a sweep", + "value" : { + "id" : "SWPC4227C224555B5FTD2NT2JV4WN5", + "counterparty" : { + "merchantAccount" : "YOUR_MERCHANT_ACCOUNT" + }, + "triggerAmount" : { + "currency" : "EUR", + "value" : 50000 + }, + "currency" : "EUR", + "schedule" : { + "type" : "balance" + }, + "type" : "pull", + "status" : "inactive" + } + }, + "patch-balanceAccounts-id-updateBalanceAccount" : { + "summary" : "Update the time zone of a balance account", + "description" : "Example request for updating a balance account", + "value" : { + "timeZone" : "Europe/Amsterdam" + } + }, + "patch-balanceAccounts-id-updateBalanceAccount-200" : { + "summary" : "Time zone of a balance account updated", + "description" : "Example response for updating a balance account", + "value" : { + "accountHolderId" : "AH32272223222B5GFSNVGFFM7", + "defaultCurrencyCode" : "EUR", + "timeZone" : "Europe/Amsterdam", + "balances" : [ { + "available" : 0, + "balance" : 0, + "currency" : "EUR", + "reserved" : 0 + } ], + "id" : "BA32272223222B59K6ZXHBFN6", + "status" : "active" + } + }, + "patch-paymentInstruments-id-updatePaymentInstrumentBalanceAccount" : { + "summary" : "Update the balance account linked to a payment instrument", + "description" : "Example request for updating the balance account of a payment instrument", + "value" : { + "balanceAccountId" : "BA32272223222B5CM82WL892M" + } + }, + "patch-paymentInstruments-id-updatePaymentInstrumentBalanceAccount-200" : { + "summary" : "Balance account updated", + "description" : "Example response for updating the balance account linked to a payment instrument", + "value" : { + "balanceAccountId" : "BA32272223222B5CM82WL892M", + "description" : "S. Hopper - Main card", + "issuingCountryCode" : "GB", + "status" : "inactive", + "type" : "card", + "card" : { + "brand" : "mc", + "brandVariant" : "mcdebit", + "cardholderName" : "Simon Hopper", + "formFactor" : "virtual", + "bin" : "555544", + "expiration" : { + "month" : "01", + "year" : "2024" + }, + "lastFour" : "5785", + "number" : "************5785" + }, + "id" : "PI3227C223222B5CMD278FKGS" + } + }, + "patch-paymentInstruments-id-updatePaymentInstrumentStatus" : { + "summary" : "Update the status of a payment instrument", + "description" : "Example request for updating the status of a payment instrument", + "value" : { + "status" : "suspended" + } + }, + "patch-paymentInstruments-id-updatePaymentInstrumentStatus-200" : { + "summary" : "Payment instrument status updated", + "description" : "Example response for updating the status of a payment instrument", + "value" : { + "balanceAccountId" : "BA32272223222B59CZ3T52DKZ", + "description" : "S. Hopper - Main card", + "issuingCountryCode" : "GB", + "status" : "suspended", + "type" : "card", + "card" : { + "brand" : "mc", + "brandVariant" : "mcdebit", + "cardholderName" : "Simon Hopper", + "formFactor" : "virtual", + "bin" : "555544", + "expiration" : { + "month" : "01", + "year" : "2024" + }, + "lastFour" : "5785", + "number" : "************5785" + }, + "id" : "PI3227C223222B5CMD278FKGS" + } + }, + "patch-transactionRules-transactionRuleId-updateTransactionRuleStatus" : { + "summary" : "Update the interval of transaction rule", + "description" : "Example request for updating the interval of a transaction rule", + "value" : { + "description" : "Allow only point-of-sale transactions", + "reference" : "YOUR_REFERENCE_4F7346", + "entityKey" : { + "entityType" : "paymentInstrument", + "entityReference" : "PI3227C223222B5FG88SB8BHR" + }, + "status" : "inactive", + "interval" : { + "type" : "weekly" + }, + "ruleRestrictions" : { + "processingTypes" : { + "operation" : "noneMatch", + "value" : [ "pos" ] + } + }, + "type" : "blockList" + } + }, + "patch-transactionRules-transactionRuleId-updateTransactionRuleStatus-200" : { + "summary" : "Transaction rule status updated", + "description" : "Example response for successfully updating the status of a transaction rule", + "value" : { + "aggregationLevel" : "paymentInstrument", + "description" : "Up to 1000 EUR per card for the last 12 hours", + "entityKey" : { + "entityReference" : "PG3227C223222C5GXR3M5592Q", + "entityType" : "paymentInstrumentGroup" + }, + "interval" : { + "duration" : { + "unit" : "hours", + "value" : 12 + }, + "timeZone" : "UTC", + "type" : "sliding" + }, + "outcomeType" : "hardBlock", + "reference" : "YOUR_REFERENCE_2918A", + "requestType" : "authorization", + "ruleRestrictions" : { + "totalAmount" : { + "operation" : "greaterThan", + "value" : { + "currency" : "EUR", + "value" : 100000 + } + } + }, + "startDate" : "2022-11-17T00:07:09.10057663+01:00", + "status" : "inactive", + "type" : "velocity", + "id" : "TR3227C223222C5GXR3XP596N" + } + }, + "post-accountHolders-createAccountHolder" : { + "summary" : "Create an account holder", + "description" : "Example request for creating an account holder", + "value" : { + "description" : "Liable account holder used for international payments and payouts", + "reference" : "S.Eller-001", + "legalEntityId" : "LE322JV223222D5GG42KN6869" + } + }, + "post-accountHolders-createAccountHolder-200" : { + "summary" : "Response for creating an account holder", + "description" : "Example response for creating an account holder", + "value" : { + "balancePlatform" : "YOUR_BALANCE_PLATFORM", + "description" : "Liable account holder used for international payments and payouts", + "legalEntityId" : "LE322JV223222D5GG42KN6869", + "reference" : "S.Eller-001", + "capabilities" : { + "receiveFromPlatformPayments" : { + "enabled" : true, + "requested" : true, + "allowed" : false, + "verificationStatus" : "pending" + }, + "receiveFromBalanceAccount" : { + "enabled" : true, + "requested" : true, + "allowed" : false, + "verificationStatus" : "pending" + }, + "sendToBalanceAccount" : { + "enabled" : true, + "requested" : true, + "allowed" : false, + "verificationStatus" : "pending" + }, + "sendToTransferInstrument" : { + "enabled" : true, + "requested" : true, + "allowed" : false, + "requestedSettings" : { + "interval" : "daily", + "maxAmount" : { + "currency" : "EUR", + "value" : 0 + } + }, + "verificationStatus" : "pending" + } + }, + "id" : "AH3227C223222H5J4DCLW9VBV", + "status" : "active" + } + }, + "post-balanceAccounts-balanceAccountId-sweeps-createSweep-pull" : { + "summary" : "Create a sweep to pull funds in to a balance account", + "description" : "Example request for creating a pull sweep", + "value" : { + "counterparty" : { + "merchantAccount" : "YOUR_MERCHANT_ACCOUNT" + }, + "triggerAmount" : { + "currency" : "EUR", + "value" : 50000 + }, + "currency" : "EUR", + "schedule" : { + "type" : "balance" + }, + "type" : "pull", + "status" : "active" + } + }, + "post-balanceAccounts-balanceAccountId-sweeps-createSweep-pull-200" : { + "summary" : "Sweep of pull type created", + "description" : "Example response for creating a pull sweep", + "value" : { + "id" : "SWPC4227C224555B5FTD2NT2JV4WN5", + "counterparty" : { + "merchantAccount" : "YOUR_MERCHANT_ACCOUNT" + }, + "triggerAmount" : { + "currency" : "EUR", + "value" : 50000 + }, + "currency" : "EUR", + "schedule" : { + "type" : "balance" + }, + "type" : "pull", + "status" : "active" + } + }, + "post-balanceAccounts-balanceAccountId-sweeps-createSweep-push" : { + "summary" : "Create a sweep to push funds out of a balance account", + "description" : "Example request for creating a push sweep", + "value" : { + "counterparty" : { + "balanceAccountId" : "BA32278887611B5FTD2KR6TJD" + }, + "triggerAmount" : { + "currency" : "EUR", + "value" : 50000 + }, + "currency" : "EUR", + "schedule" : { + "type" : "weekly" + }, + "type" : "push", + "status" : "active" + } + }, + "post-balanceAccounts-balanceAccountId-sweeps-createSweep-push-200" : { + "summary" : "Sweep of push type created", + "description" : "Example response for creating a push sweep", + "value" : { + "id" : "SWPC4227C224555B5FTD2NT2JV4WN5", + "counterparty" : { + "balanceAccountId" : "BA32278887611B5FTD2KR6TJD" + }, + "triggerAmount" : { + "currency" : "EUR", + "value" : 50000 + }, + "currency" : "EUR", + "schedule" : { + "type" : "weekly" + }, + "type" : "push", + "status" : "active" + } + }, + "post-balanceAccounts-balanceAccountId-sweeps-createSweep-push-priorities" : { + "summary" : "Create a sweep to push funds out of a balance account with set priorities", + "description" : "Example request for creating a push sweep with priorities", + "value" : { + "counterparty" : { + "transferInstrumentId" : "SE322JV223222J5HGLCGF2WDV" + }, + "triggerAmount" : { + "currency" : "EUR", + "value" : 50000 + }, + "currency" : "EUR", + "priorities" : [ "fast", "instant" ], + "category" : "bank", + "schedule" : { + "type" : "weekly" + }, + "type" : "push", + "status" : "active" + } + }, + "post-balanceAccounts-balanceAccountId-sweeps-createSweep-push-priorities-200" : { + "summary" : "Sweep of push type with priorities created", + "description" : "Example response for creating a push sweep with priorities", + "value" : { + "id" : "SWPC4227C224555B5FTD2NT2JV4WN9", + "counterparty" : { + "transferInstrumentId" : "SE322JV223222J5HGLCGF2WDV" + }, + "triggerAmount" : { + "currency" : "EUR", + "value" : 50000 + }, + "currency" : "EUR", + "priorities" : [ "fast", "instant" ], + "category" : "bank", + "schedule" : { + "type" : "weekly" + }, + "type" : "push", + "status" : "active" + } + }, + "post-balanceAccounts-createBalanceAccount" : { + "summary" : "Create a balance account", + "description" : "Example request for creating a balance account", + "value" : { + "accountHolderId" : "AH32272223222C5GXTD343TKP", + "description" : "S.Hopper - Main balance account" + } + }, + "post-balanceAccounts-createBalanceAccount-200" : { + "summary" : "Create a balance account", + "description" : "Example request for creating a balance account", + "value" : { + "accountHolderId" : "AH32272223222C5GXTD343TKP", + "defaultCurrencyCode" : "EUR", + "description" : "S.Hopper - Main balance account", + "timeZone" : "Europe/Amsterdam", + "balances" : [ { + "available" : 0, + "balance" : 0, + "currency" : "EUR", + "reserved" : 0 + } ], + "id" : "BA3227C223222H5J4DCGQ9V9L", + "status" : "active" + } + }, + "post-balanceAccounts-createBalanceAccountCAD" : { + "summary" : "Create a balance account - CAD default currency", + "description" : "Example request for creating a balance account with CAD as the default currency.", + "value" : { + "accountHolderId" : "AH0000000000000000000001", + "description" : "CAD Balance Account", + "defaultCurrencyCode" : "CAD", + "timeZone" : "America/Toronto" + } + }, + "post-balanceAccounts-createBalanceAccountCAD-200" : { + "summary" : "Create a balance account - CAD default currency", + "description" : "Example request for creating a balance account with CAD as the default currency.", + "value" : { + "accountHolderId" : "AH0000000000000000000001", + "defaultCurrencyCode" : "CAD", + "description" : "CAD Balance Account", + "timeZone" : "America/Toronto", + "balances" : [ { + "available" : 0, + "balance" : 0, + "currency" : "CAD", + "pending" : 0, + "reserved" : 0 + } ], + "id" : "BA0000000000000000000001", + "status" : "active" + } + }, + "post-balanceAccounts-createBalanceAccountGBP" : { + "summary" : "Create a balance account - GBP default currency", + "description" : "Example request for creating a balance account with GBP as the default currency.", + "value" : { + "accountHolderId" : "AH0000000000000000000001", + "description" : "GBP Balance Account", + "defaultCurrencyCode" : "GBP", + "timeZone" : "Europe/London" + } + }, + "post-balanceAccounts-createBalanceAccountGBP-200" : { + "summary" : "Create a balance account - GBP default currency", + "description" : "Example request for creating a balance account with GBP as the default currency.", + "value" : { + "accountHolderId" : "AH0000000000000000000001", + "defaultCurrencyCode" : "GBP", + "description" : "GBP Balance Account", + "timeZone" : "Europe/London", + "balances" : [ { + "available" : 0, + "balance" : 0, + "currency" : "GBP", + "pending" : 0, + "reserved" : 0 + } ], + "id" : "BA0000000000000000000001", + "status" : "active" + } + }, + "post-balanceAccounts-createBalanceAccountUSD" : { + "summary" : "Create a balance account - USD default currency", + "description" : "Example request for creating a balance account with USD as the default currency.", + "value" : { + "accountHolderId" : "AH0000000000000000000001", + "description" : "USD Balance Account", + "defaultCurrencyCode" : "USD", + "timeZone" : "America/Chicago" + } + }, + "post-balanceAccounts-createBalanceAccountUSD-200" : { + "summary" : "Create a balance account - USD default currency", + "description" : "Example request for creating a balance account with USD as the default currency.", + "value" : { + "accountHolderId" : "AH0000000000000000000001", + "defaultCurrencyCode" : "USD", + "description" : "USD Balance Account", + "timeZone" : "America/Chicago", + "balances" : [ { + "available" : 0, + "balance" : 0, + "currency" : "USD", + "pending" : 0, + "reserved" : 0 + } ], + "id" : "BA0000000000000000000001", + "status" : "active" + } + }, + "post-paymentInstrumentGroups-createPaymentInstrumentGroups" : { + "summary" : "Create a payment instrument group", + "description" : "Example request for creating a payment instrument group", + "value" : { + "balancePlatform" : "YOUR_BALANCE_PLATFORM", + "txVariant" : "mc" + } + }, + "post-paymentInstrumentGroups-createPaymentInstrumentGroups-200" : { + "summary" : "Create a payment instrument group", + "description" : "Example request for creating a payment instrument group", + "value" : { + "balancePlatform" : "YOUR_BALANCE_PLATFORM", + "txVariant" : "mc", + "id" : "PG32272223222H5J4DCRVC9DH" + } + }, + "post-paymentInstruments-createBusinessAccountNL" : { + "summary" : "Create a business account in NL", + "description" : "Example request for creating a business account in NL", + "value" : { + "type" : "bankAccount", + "description" : "YOUR_DESCRIPTION", + "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", + "issuingCountryCode" : "NL" + } + }, + "post-paymentInstruments-createBusinessAccountNL-200" : { + "summary" : "Business account in NL created", + "description" : "Example response for creating a business account in NL", + "value" : { + "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", + "issuingCountryCode" : "NL", + "status" : "active", + "type" : "bankAccount", + "description" : "YOUR_DESCRIPTION", + "bankAccount" : { + "formFactor" : "physical", + "type" : "iban", + "iban" : "NL20ADYB2017000035" + }, + "id" : "PI322LJ223222B5DJS7CD9LWL" + } + }, + "post-paymentInstruments-createBusinessAccountNL-DELocalIBAN" : { + "summary" : "Create a local IBAN in DE (first create an NL business account)", + "description" : "Example request for creating a local IBAN in DE", + "value" : { + "type" : "bankAccount", + "description" : "YOUR_DESCRIPTION", + "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", + "issuingCountryCode" : "DE", + "bankAccount" : { + "formFactor" : "virtual" + } + } + }, + "post-paymentInstruments-createBusinessAccountNL-DELocalIBAN-200" : { + "summary" : "Virtual business account in DE (local IBAN) created", + "description" : "Example response for creating a local IBAN business account in DE", + "value" : { + "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", + "description" : "YOUR_DESCRIPTION", + "issuingCountryCode" : "DE", + "status" : "active", + "type" : "bankAccount", + "bankAccount" : { + "type" : "iban", + "iban" : "DE20100190002300001206", + "formFactor" : "virtual" + }, + "id" : "PI3227C223226C5JW49ZHBQMS" + } + }, + "post-paymentInstruments-createBusinessAccountNL-FRLocalIBAN" : { + "summary" : "Create a local IBAN in FR (first create an NL business account)", + "description" : "Example request for creating a local IBAN in FR", + "value" : { + "type" : "bankAccount", + "description" : "YOUR_DESCRIPTION", + "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", + "issuingCountryCode" : "FR", + "bankAccount" : { + "formFactor" : "virtual" + } + } + }, + "post-paymentInstruments-createBusinessAccountNL-FRLocalIBAN-200" : { + "summary" : "Virtual business account in FR (local IBAN) created", + "description" : "Example response for creating a local IBAN business account in FR", + "value" : { + "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", + "description" : "YOUR_DESCRIPTION", + "issuingCountryCode" : "FR", + "status" : "active", + "type" : "bankAccount", + "bankAccount" : { + "type" : "iban", + "iban" : "FR7621733712350230000110741", + "formFactor" : "virtual" + }, + "id" : "PI3227C223226C5JW49ZAHSYD" + } + }, + "post-paymentInstruments-createBusinessAccountUK" : { + "summary" : "Create a business account in the UK", + "description" : "Example request for creating a business account in the UK", + "value" : { + "type" : "bankAccount", + "description" : "YOUR_DESCRIPTION", + "balanceAccountId" : "BA328R4223227F5KMH9NJB2S4", + "issuingCountryCode" : "GB" + } + }, + "post-paymentInstruments-createBusinessAccountUK-200" : { + "summary" : "Business account in the UK created", + "description" : "Example response for creating a business account in the UK", + "value" : { + "balanceAccountId" : "BA328R4223227F5KMH9NJB2S4", + "description" : "YOUR_DESCRIPTION", + "issuingCountryCode" : "GB", + "status" : "active", + "type" : "bankAccount", + "bankAccount" : { + "accountNumber" : "20010731", + "formFactor" : "physical", + "iban" : "GB68ADYX04295720010731", + "sortCode" : "042957", + "type" : "ukLocal" + }, + "id" : "PI328Q9223227F5KMH9P92MDG" + } + }, + "post-paymentInstruments-createBusinessAccountUS" : { + "summary" : "Create a business account in the US", + "description" : "Example request for creating a business account in the US", + "value" : { + "type" : "bankAccount", + "description" : "YOUR_DESCRIPTION", + "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", + "issuingCountryCode" : "US" + } + }, + "post-paymentInstruments-createBusinessAccountUS-200" : { + "summary" : "Business account in the US created", + "description" : "Example response for creating a business account in the US", + "value" : { + "balanceAccountId" : "BA3227C223222B5CTBLR8BWJB", + "issuingCountryCode" : "US", + "status" : "active", + "type" : "bankAccount", + "description" : "YOUR_DESCRIPTION", + "bankAccount" : { + "accountNumber" : "333720756", + "accountType" : "checking", + "formFactor" : "physical", + "routingNumber" : "210000210", + "type" : "usLocal" + }, + "id" : "PI322LJ223222B5DJS7CD9LWL" + } + }, + "post-paymentInstruments-createPhysicalCard" : { + "summary" : "Create a physical card", + "description" : "Example request for creating a physical card", + "value" : { + "type" : "card", + "issuingCountryCode" : "NL", + "balanceAccountId" : "BA32272223222B59CZ3T52DKZ", + "description" : "S.Hopper - Main card", + "status" : "inactive", + "card" : { + "formFactor" : "physical", + "brand" : "mc", + "brandVariant" : "mcdebit", + "cardholderName" : "Sam Hopper", + "deliveryContact" : { + "address" : { + "city" : "Amsterdam", + "country" : "NL", + "stateOrProvince" : "NH", + "line1" : "Brannan Street", + "line2" : "274", + "postalCode" : "1020CD" + }, + "name" : { + "firstName" : "Sam", + "lastName" : "Hopper" + } + }, + "configuration" : { + "configurationProfileId" : "CP123AB45678C91ABCD2ABCDE" + } + } + } + }, + "post-paymentInstruments-createPhysicalCard-200" : { + "summary" : "Physical card created", + "description" : "Example response for creating a physical card", + "value" : { + "balanceAccountId" : "BA32272223222B59CZ3T52DKZ", + "description" : "S. Hopper - Main card", + "issuingCountryCode" : "NL", + "status" : "inactive", + "type" : "card", + "card" : { + "brand" : "mc", + "brandVariant" : "mcdebit", + "cardholderName" : "Sam Hopper", + "formFactor" : "physical", + "number" : "************5785", + "bin" : "555544", + "expiration" : { + "month" : "08", + "year" : "2024" + }, + "lastFour" : "2765", + "authentication" : { + "password" : "******", + "phone" : { + "number" : "+123456789", + "type" : "mobile" + } + }, + "deliveryContact" : { + "address" : { + "city" : "Amsterdam", + "country" : "NL", + "stateOrProvince" : "NH", + "line1" : "Brannan Street", + "line2" : "274", + "postalCode" : "1020CD" + }, + "name" : { + "firstName" : "Sam", + "lastName" : "Hopper" + } + }, + "configuration" : { + "configurationProfileId" : "CP123AB45678C91ABCD2ABCDE" + } + }, + "id" : "PI3227C223222B5BPCMFXD2XG" + } + }, + "post-paymentInstruments-createVirtualCard" : { + "summary" : "Create a virtual card", + "description" : "Example request for creating a virtual card", + "value" : { + "type" : "card", + "description" : "My test card", + "balanceAccountId" : "BA3227C223222B5FG88S28BGN", + "issuingCountryCode" : "NL", + "card" : { + "cardholderName" : "Simon Hopper", + "brand" : "mc", + "brandVariant" : "mcdebit", + "formFactor" : "virtual" + } + } + }, + "post-paymentInstruments-createVirtualCard-200" : { + "summary" : "Virtual card created", + "description" : "Example response for creating a virtual card", + "value" : { + "balanceAccountId" : "BA3227C223222B5FG88S28BGN", + "description" : "My test card", + "issuingCountryCode" : "NL", + "status" : "active", + "type" : "card", + "card" : { + "brand" : "mc", + "brandVariant" : "mcdebit", + "cardholderName" : "Simon Hopper", + "formFactor" : "virtual", + "bin" : "555544", + "cvc" : "136", + "expiration" : { + "month" : "11", + "year" : "2025" + }, + "lastFour" : "3703", + "number" : "5555444411213703" + }, + "id" : "PI32272223222C5GXTDWH3TTN" + } + }, + "post-pins-change-requestPinChange" : { + "summary" : "Request a PIN change", + "value" : { + "paymentInstrumentId" : "PI6789678967896789", + "encryptedKey" : "75989E8881284D10153ABACF022EEA09F5...", + "encryptedPinBlock" : "63E5060591EF65F48DD1D4FECD0FECD5", + "token" : "5555341244441115" + } + }, + "post-pins-change-requestPinChange-200" : { + "summary" : "Request completed", + "value" : { + "status" : "completed" + } + }, + "post-pins-reveal-requestPinBlock" : { + "summary" : "Request a PIN block", + "value" : { + "paymentInstrumentId" : "PI3227C223222B5BPCMFXD2XG", + "encryptedKey" : "75989E8881284D10153ABACF022EEA09F5..." + } + }, + "post-pins-reveal-requestPinBlock-200" : { + "summary" : "Response with encrypted PIN block", + "value" : { + "encryptedPinBlock" : "63E5060591EF65F48DD1D4FECD0FECD5", + "token" : "5555341244441115" + } + }, + "post-transactionRules-createTransactionRuleAllowPos" : { + "summary" : "Allow only point-of-sale transactions", + "description" : "Example request to allow only point-of-sale transactions", + "value" : { + "description" : "Allow only point-of-sale transactions", + "reference" : "YOUR_REFERENCE_4F7346", + "entityKey" : { + "entityType" : "paymentInstrument", + "entityReference" : "PI3227C223222B5FG88SB8BHR" + }, + "status" : "active", + "interval" : { + "type" : "perTransaction" + }, + "ruleRestrictions" : { + "processingTypes" : { + "operation" : "noneMatch", + "value" : [ "pos" ] + } + }, + "type" : "blockList" + } + }, + "post-transactionRules-createTransactionRuleAllowPos-200" : { + "summary" : "Transaction rule to allow only point-of-sale transactions", + "description" : "Example response for allowing only point-of-sale transactions", + "value" : { + "description" : "Allow only point-of-sale transactions", + "entityKey" : { + "entityReference" : "PI3227C223222B5FG88SB8BHR", + "entityType" : "paymentInstrument" + }, + "interval" : { + "timeZone" : "UTC", + "type" : "perTransaction" + }, + "outcomeType" : "hardBlock", + "reference" : "YOUR_REFERENCE_4F7346", + "requestType" : "authorization", + "ruleRestrictions" : { + "processingTypes" : { + "operation" : "noneMatch", + "value" : [ "pos" ] + } + }, + "startDate" : "2023-06-29T22:34:36.173226192+02:00", + "status" : "active", + "type" : "blockList", + "id" : "TR3227C223222H5J4D9ML9V4D" + } + }, + "post-transactionRules-createTransactionRuleIncreaseScore" : { + "summary" : "Increase the score of a card", + "description" : "Example request to increase the score of a card", + "value" : { + "description" : "Assign score if more than 500 EUR in 2 hours", + "entityKey" : { + "entityType" : "paymentInstrument", + "entityReference" : "PI3227C223222B5FG88SB8BHR" + }, + "interval" : { + "type" : "sliding", + "duration" : { + "value" : 2, + "unit" : "hours" + } + }, + "outcomeType" : "scoreBased", + "reference" : "myRule11789", + "ruleRestrictions" : { + "totalAmount" : { + "operation" : "greaterThan", + "value" : { + "currency" : "EUR", + "value" : 50000 + } + } + }, + "score" : 20, + "type" : "velocity" + } + }, + "post-transactionRules-createTransactionRuleIncreaseScore-200" : { + "summary" : "Transaction rule for increasing the score of a card", + "description" : "Example response to increase the score of a card", + "value" : { + "description" : "Assign score if more than 500 EUR in 2 hours", + "entityKey" : { + "entityReference" : "PI3227C223222B5FG88SB8BHR", + "entityType" : "paymentInstrument" + }, + "interval" : { + "duration" : { + "unit" : "hours", + "value" : 2 + }, + "timeZone" : "UTC", + "type" : "sliding" + }, + "outcomeType" : "scoreBased", + "reference" : "myRule11789", + "requestType" : "authorization", + "ruleRestrictions" : { + "totalAmount" : { + "operation" : "greaterThan", + "value" : { + "currency" : "EUR", + "value" : 50000 + } + } + }, + "score" : 20, + "status" : "inactive", + "type" : "velocity", + "id" : "TR3227C223222H5J4D9S39V59" + } + }, + "post-transactionRules-createTransactionRuleLimitSliding" : { + "summary" : "Limit total amount in the last 12 hours", + "description" : "Example request to limit the total amount in a sliding interval", + "value" : { + "description" : "Up to 1000 EUR per card for the last 12 hours", + "reference" : "YOUR_REFERENCE_2918A", + "status" : "active", + "entityKey" : { + "entityReference" : "BA3227C223222B5FN65355NR3", + "entityType" : "balanceAccount" + }, + "aggregationLevel" : "paymentInstrument", + "interval" : { + "type" : "sliding", + "duration" : { + "value" : 12, + "unit" : "hours" + } + }, + "outcomeType" : "hardBlock", + "ruleRestrictions" : { + "totalAmount" : { + "operation" : "greaterThan", + "value" : { + "value" : 100000, + "currency" : "EUR" + } + } + }, + "type" : "velocity" + } + }, + "post-transactionRules-createTransactionRuleLimitSliding-200" : { + "summary" : "Transaction rule for limiting total amount in the last 12 hours", + "description" : "Example response to limit the total amount in a sliding interval", + "value" : { + "aggregationLevel" : "paymentInstrument", + "description" : "Up to 1000 EUR per card for the last 12 hours", + "entityKey" : { + "entityReference" : "BA3227C223222B5FN65355NR3", + "entityType" : "balanceAccount" + }, + "interval" : { + "duration" : { + "unit" : "hours", + "value" : 12 + }, + "timeZone" : "UTC", + "type" : "sliding" + }, + "outcomeType" : "hardBlock", + "reference" : "YOUR_REFERENCE_2918A", + "requestType" : "authorization", + "ruleRestrictions" : { + "totalAmount" : { + "operation" : "greaterThan", + "value" : { + "currency" : "EUR", + "value" : 100000 + } + } + }, + "startDate" : "2023-06-29T22:39:06.887628679+02:00", + "status" : "active", + "type" : "velocity", + "id" : "TR32272223222H5J4D9Z8C97H" + } + }, + "post-transactionRules-createTransactionRuleLimitTransaction" : { + "summary" : "Limit international payments", + "description" : "Example request to limit total amount of international transactions", + "value" : { + "description" : "Up to 50 EUR international transactions", + "reference" : "YOUR_REFERENCE_B2634", + "status" : "active", + "entityKey" : { + "entityType" : "balanceAccount", + "entityReference" : "BA3227C223222B5FN65355NR3" + }, + "interval" : { + "type" : "daily" + }, + "outcomeType" : "hardBlock", + "ruleRestrictions" : { + "totalAmount" : { + "operation" : "greaterThan", + "value" : { + "currency" : "EUR", + "value" : 5000 + } + }, + "internationalTransaction" : { + "operation" : "equals", + "value" : true + } + }, + "type" : "velocity" + } + }, + "post-transactionRules-createTransactionRuleLimitTransaction-200" : { + "summary" : "Transaction rule for limiting international payments", + "description" : "Example response to limit total amount of international transactions", + "value" : { + "description" : "Up to 50 EUR international transactions", + "entityKey" : { + "entityReference" : "BA3227C223222B5FN65355NR3", + "entityType" : "balanceAccount" + }, + "interval" : { + "timeOfDay" : "00:00:00", + "timeZone" : "UTC", + "type" : "daily" + }, + "outcomeType" : "hardBlock", + "reference" : "YOUR_REFERENCE_B2634", + "requestType" : "authorization", + "ruleRestrictions" : { + "internationalTransaction" : { + "operation" : "equals", + "value" : true + }, + "totalAmount" : { + "operation" : "greaterThan", + "value" : { + "currency" : "EUR", + "value" : 5000 + } + } + }, + "startDate" : "2023-06-29T22:39:54.068487152+02:00", + "status" : "active", + "type" : "velocity", + "id" : "TR3227C223222H5J4DB2X9V65" + } + }, + "post-transferRoutes-calculate-transferRoutesCalculate" : { + "summary" : "Calculate transfer routes", + "description" : "Example request for calculating transfer routes", + "value" : { + "balancePlatform" : "YOUR_BALANCE_PLATFORM", + "currency" : "USD", + "category" : "bank", + "counterparty" : { + "bankAccount" : { + "accountIdentification" : { + "type" : "iban", + "iban" : "NL91ABNA0417164300" + } + } + } + } + }, + "post-transferRoutes-calculate-transferRoutesCalculate-200" : { + "summary" : "Response for calculating transfer routes", + "description" : "Example response for calculating transfer routes", + "value" : { + "transferRoutes" : [ { + "country" : "NL", + "currency" : "USD", + "priority" : "crossBorder", + "requirements" : [ { + "description" : "Amount of transfer must be at least 100, and no greater than 99999999999", + "max" : 99999999999, + "min" : 100, + "type" : "amountMinMaxRequirement" + }, { + "description" : "Country, street and city is required.", + "requiredAddressFields" : [ "line1", "city", "country" ], + "type" : "addressRequirement" + }, { + "description" : "Bank account identification type must be iban or numberAndBic", + "bankAccountIdentificationTypes" : [ "iban", "numberAndBic" ], + "type" : "bankAccountIdentificationTypeRequirement" + }, { + "issuingCountryCode" : "NL", + "paymentInstrumentType" : "BankAccount", + "type" : "paymentInstrumentRequirement" + } ] + }, { + "country" : "NL", + "currency" : "USD", + "priority" : "wire", + "requirements" : [ { + "description" : "Amount of transfer must be at least 100, and no greater than 99999999999", + "max" : 99999999999, + "min" : 100, + "type" : "amountMinMaxRequirement" + }, { + "description" : "Country, street and city is required.", + "requiredAddressFields" : [ "line1", "city", "country" ], + "type" : "addressRequirement" + }, { + "description" : "Bank account identification type must be iban or numberAndBic", + "bankAccountIdentificationTypes" : [ "iban", "numberAndBic" ], + "type" : "bankAccountIdentificationTypeRequirement" + }, { + "issuingCountryCode" : "NL", + "paymentInstrumentType" : "BankAccount", + "type" : "paymentInstrumentRequirement" + } ] + } ] + } + }, + "post-validateBankAccountIdentification-validateBankAccountIdentificationIban" : { + "summary" : "Validate an IBAN", + "value" : { + "accountIdentification" : { + "type" : "iban", + "iban" : "1001001234" + } + } + }, + "post-validateBankAccountIdentification-validateBankAccountIdentificationIban-422" : { + "summary" : "Invalid IBAN details", + "value" : { + "type" : "https://docs.adyen.com/errors/validation", + "title" : "Invalid bank account identification details provided", + "detail" : "Provided IBAN is incorrect", + "status" : 422, + "invalidFields" : [ { + "name" : "iban", + "value" : "1001001234", + "message" : "Invalid IBAN." + } ], + "errorCode" : "33_01" + } + }, + "post-validateBankAccountIdentification-validateBankAccountIdentificationUs" : { + "summary" : "Validate a US bank account", + "value" : { + "accountIdentification" : { + "type" : "usLocal", + "accountNumber" : "12345JHDhjkf67890", + "accountType" : "checking", + "routingNumber" : "121000567" + } + } + }, + "post-validateBankAccountIdentification-validateBankAccountIdentificationUs-422" : { + "summary" : "Invalid US bank account details", + "value" : { + "type" : "https://docs.adyen.com/errors/validation", + "title" : "Invalid bank account identification details provided", + "detail" : "Provided account number and the routing number are incorrect", + "status" : 422, + "invalidFields" : [ { + "name" : "accountNumber", + "value" : "12345JHDhjkf67890", + "message" : "Invalid account number." + }, { + "name" : "routingNumber", + "value" : "121000567", + "message" : "Invalid routing number." + } ], + "errorCode" : "33_01" + } + } + }, + "securitySchemes" : { + "ApiKeyAuth" : { + "type" : "apiKey", + "name" : "X-API-Key", + "in" : "header" + }, + "BasicAuth" : { + "type" : "http", + "scheme" : "basic" + }, + "clientKey" : { + "type" : "apiKey", + "name" : "clientKey", + "in" : "query" + } + } + } } \ No newline at end of file diff --git a/yaml/BalancePlatformBalanceNotification-v1.yaml b/yaml/BalancePlatformBalanceNotification-v1.yaml new file mode 100644 index 0000000..6e8117b --- /dev/null +++ b/yaml/BalancePlatformBalanceNotification-v1.yaml @@ -0,0 +1,166 @@ +openapi: 3.1.0 +info: + title: Balance webhook + description: 'Adyen sends webhooks to inform you of balance changes in your balance + platform. + + + You can use the [Configuration API](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balancePlatforms/(id)/webhooks/(id)/settings) + to set the conditions that a balance change must meet for Adyen to send a balance + webhook: + + + - In your entire balance platform + + - In the balance accounts of specific account holders + + - In a specific balance account' + termsOfService: https://www.adyen.com/legal/terms-and-conditions + contact: + name: Adyen Developer Experience team + url: https://github.com/Adyen/adyen-openapi + version: '1' + x-timestamp: '2025-03-20T15:36:19Z' +tags: +- name: balancePlatform.balanceAccount.balance.updated +- name: Balances +webhooks: + balanceAccount.balance.updated: + post: + tags: + - Balances + summary: Balance updated + description: Adyen sends this webhook when the specified balance type reaches + or drops below the threshold you configured. + operationId: post-balanceAccount.balance.updated + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BalanceAccountBalanceNotificationRequest' + examples: + balance-updated: + summary: Balance changed + description: Balance changed + value: + data: + settingIds: BWHS00000000000000000000000001 + creationDate: '2025-01-19T13:37:38+02:00' + balancePlatform: YOUR_BALANCE_PLATFORM + currency: USD + balances: + available: 499900 + pending: 350000 + reserved: 120000 + balance: 470000 + environment: test + type: balancePlatform.balanceAccount.balance.updated + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/BalancePlatformNotificationResponse' + examples: + balance-updated: + summary: Acknowledge webhook + description: Acknowledge webhook + value: + notificationResponse: '[accepted]' + x-sortIndex: 0 +components: + schemas: + BalancePlatformNotificationResponse: + type: object + properties: + notificationResponse: + type: string + description: Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + BalanceAccountBalanceNotificationRequest: + required: + - data + - environment + - type + type: object + properties: + data: + description: Contains event details. + $ref: '#/components/schemas/BalanceNotificationData' + environment: + type: string + description: 'The environment from which the webhook originated. + + + Possible values: **test**, **live**.' + timestamp: + type: string + description: When the event was queued. + format: date-time + type: + type: string + description: Type of webhook. + enum: + - balancePlatform.balanceAccount.balance.updated + BalanceNotificationData: + required: + - balanceAccountId + - balances + - currency + - settingIds + type: object + properties: + balanceAccountId: + type: string + description: The unique identifier of the balance account. + balancePlatform: + type: string + description: The unique identifier of the balance platform. + balances: + description: The list balance types. + $ref: '#/components/schemas/Balances' + creationDate: + type: string + description: The date and time when the event was triggered, in ISO 8601 + extended format. For example, **2020-12-18T10:15:30+01:00**. + format: date-time + currency: + type: string + description: TThe three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + id: + type: string + description: The ID of the resource. + readOnly: true + settingIds: + type: array + description: The unique identifier of the balance webhook setting. + items: + type: string + Balances: + type: object + properties: + available: + type: integer + description: The balance that is available for use. + format: int64 + balance: + type: integer + description: The sum of transactions that have already been settled. + format: int64 + pending: + type: integer + description: The sum of transactions that will be settled in the future. + format: int64 + reserved: + type: integer + description: The balance currently held in reserve. + format: int64 + securitySchemes: + ApiKeyAuth: + type: apiKey + name: X-API-Key + in: header + BasicAuth: + type: http + scheme: basic +jsonSchemaDialect: https://spec.openapis.org/oas/3.1/dialect/base diff --git a/yaml/BalancePlatformConfigurationNotification-v1.yaml b/yaml/BalancePlatformConfigurationNotification-v1.yaml index 9d9cdfb..c012138 100644 --- a/yaml/BalancePlatformConfigurationNotification-v1.yaml +++ b/yaml/BalancePlatformConfigurationNotification-v1.yaml @@ -1696,6 +1696,7 @@ components: - directDebitNotSupported - error - notEnoughBalance + - pending - pendingApproval - pendingExecution - refusedByCounterpartyBank diff --git a/yaml/BalancePlatformConfigurationNotification-v2.yaml b/yaml/BalancePlatformConfigurationNotification-v2.yaml index 411c16b..ca8198d 100644 --- a/yaml/BalancePlatformConfigurationNotification-v2.yaml +++ b/yaml/BalancePlatformConfigurationNotification-v2.yaml @@ -1804,6 +1804,7 @@ components: - directDebitNotSupported - error - notEnoughBalance + - pending - pendingApproval - pendingExecution - refusedByCounterpartyBank diff --git a/yaml/BalancePlatformService-v2.yaml b/yaml/BalancePlatformService-v2.yaml index 0444b8d..c5b025a 100644 --- a/yaml/BalancePlatformService-v2.yaml +++ b/yaml/BalancePlatformService-v2.yaml @@ -1,9 +1,5 @@ openapi: 3.1.0 -servers: -- url: https://balanceplatform-api-test.adyen.com/bcl/v2 info: - version: '2' - x-publicVersion: true title: Configuration API description: "The Configuration API allows you to manage your balance platform where\ \ you can create account holders, balance accounts, cards, and business accounts.\n\ @@ -27,10 +23,15 @@ info: contact: name: Adyen Developer Experience team url: https://github.com/Adyen/adyen-openapi + version: '2' + x-publicVersion: true +servers: +- url: https://balanceplatform-api-test.adyen.com/bcl/v2 tags: - name: Platform - name: Account holders - name: Balance accounts +- name: Balances - name: Payment instruments - name: Payment instrument groups - name: Transaction rules @@ -53,241 +54,245 @@ paths: ' - x-addedInVersion: '1' operationId: post-accountHolders - x-sortIndex: 1 - x-methodName: createAccountHolder + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AccountHolderInfo' + examples: + createAccountHolder: + $ref: '#/components/examples/post-accountHolders-createAccountHolder' + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/AccountHolder' + examples: + createAccountHolder: + $ref: '#/components/examples/post-accountHolders-createAccountHolder-200' + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-400' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' security: - clientKey: [] - BasicAuth: [] - ApiKeyAuth: [] - requestBody: - content: - application/json: - examples: - createAccountHolder: - $ref: '#/components/examples/post-accountHolders-createAccountHolder' - schema: - $ref: '#/components/schemas/AccountHolderInfo' - responses: - '200': - content: - application/json: - examples: - createAccountHolder: - $ref: '#/components/examples/post-accountHolders-createAccountHolder-200' - schema: - $ref: '#/components/schemas/AccountHolder' - description: OK - the request has succeeded. - '400': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + x-addedInVersion: '1' + x-sortIndex: 1 + x-methodName: createAccountHolder /accountHolders/{id}: get: tags: - Account holders summary: Get an account holder description: Returns an account holder. - x-addedInVersion: '1' operationId: get-accountHolders-id - x-sortIndex: 3 - x-methodName: getAccountHolder - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the account holder. - name: id + - name: id in: path + description: The unique identifier of the account holder. required: true + style: simple + explode: false schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/AccountHolder' examples: success: $ref: '#/components/examples/get-accountHolders-id-success-200' - schema: - $ref: '#/components/schemas/AccountHolder' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 3 + x-methodName: getAccountHolder patch: tags: - Account holders summary: Update an account holder description: Updates an account holder. When updating an account holder resource, if a parameter is not provided in the request, it is left unchanged. - x-addedInVersion: '1' operationId: patch-accountHolders-id - x-sortIndex: 2 - x-methodName: updateAccountHolder - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] + parameters: + - name: id + in: path + description: The unique identifier of the account holder. + required: true + style: simple + explode: false + schema: + type: string requestBody: content: application/json: + schema: + $ref: '#/components/schemas/AccountHolderUpdateRequest' examples: requestAccountHolderCapability: $ref: '#/components/examples/patch-accountHolders-id-requestAccountHolderCapability' updateAccountHolderStatus: $ref: '#/components/examples/patch-accountHolders-id-updateAccountHolderStatus' - schema: - $ref: '#/components/schemas/AccountHolderUpdateRequest' - parameters: - - description: The unique identifier of the account holder. - name: id - in: path - required: true - schema: - type: string responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/AccountHolder' examples: requestAccountHolderCapability: $ref: '#/components/examples/patch-accountHolders-id-requestAccountHolderCapability-200' updateAccountHolderStatus: $ref: '#/components/examples/patch-accountHolders-id-updateAccountHolderStatus-200' - schema: - $ref: '#/components/schemas/AccountHolder' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 2 + x-methodName: updateAccountHolder /accountHolders/{id}/balanceAccounts: get: tags: @@ -297,91 +302,97 @@ paths: \ an account holder. To fetch multiple pages, use the query parameters. \n\ \nFor example, to limit the page to 5 balance accounts and skip the first\ \ 10, use `/accountHolders/{id}/balanceAccounts?limit=5&offset=10`." - x-addedInVersion: '1' operationId: get-accountHolders-id-balanceAccounts - x-sortIndex: 4 - x-methodName: getAllBalanceAccountsOfAccountHolder + parameters: + - name: id + in: path + description: The unique identifier of the account holder. + required: true + style: simple + explode: false + schema: + type: string + - name: offset + in: query + description: The number of items that you want to skip. + required: false + style: form + explode: true + schema: + type: integer + format: int32 + - name: limit + in: query + description: The number of items returned per page, maximum 100 items. By + default, the response returns 10 items per page. + required: false + style: form + explode: true + schema: + type: integer + format: int32 + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedBalanceAccountsResponse' + examples: + success: + $ref: '#/components/examples/get-accountHolders-id-balanceAccounts-success-200' + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-400' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' security: - clientKey: [] - BasicAuth: [] - ApiKeyAuth: [] - parameters: - - description: The unique identifier of the account holder. - name: id - in: path - required: true - schema: - type: string - - description: The number of items that you want to skip. - name: offset - in: query - required: false - schema: - format: int32 - type: integer - - description: The number of items returned per page, maximum 100 items. By - default, the response returns 10 items per page. - name: limit - in: query - required: false - schema: - format: int32 - type: integer - responses: - '200': - content: - application/json: - examples: - success: - $ref: '#/components/examples/get-accountHolders-id-balanceAccounts-success-200' - schema: - $ref: '#/components/schemas/PaginatedBalanceAccountsResponse' - description: OK - the request has succeeded. - '400': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + x-addedInVersion: '1' + x-sortIndex: 4 + x-methodName: getAllBalanceAccountsOfAccountHolder /accountHolders/{id}/taxForms: get: tags: @@ -390,96 +401,102 @@ paths: description: Generates a tax form for account holders operating in the US. For more information, refer to US tax forms for [marketplaces](https://docs.adyen.com/marketplaces/us-tax-forms/) or [platforms](https://docs.adyen.com/platforms/us-tax-forms/) . - x-addedInVersion: '2' operationId: get-accountHolders-id-taxForms - x-sortIndex: 5 - x-methodName: getTaxForm + parameters: + - name: id + in: path + description: The unique identifier of the account holder. + required: true + style: simple + explode: false + schema: + type: string + - name: formType + in: query + description: The type of tax form you want to retrieve. Accepted values are + **US1099k** and **US1099nec** + required: true + style: form + explode: true + schema: + type: string + enum: + - US1099k + - US1099nec + x-enum: + - value: US1099k + - value: US1099nec + - name: year + in: query + description: The tax year in YYYY format for the tax form you want to retrieve + required: true + style: form + explode: true + schema: + type: integer + format: int32 + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/GetTaxFormResponse' + examples: + success: + $ref: '#/components/examples/get-accountHolders-id-taxForms-success-200' + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-400' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' security: - clientKey: [] - BasicAuth: [] - ApiKeyAuth: [] - parameters: - - description: The unique identifier of the account holder. - name: id - in: path - required: true - schema: - type: string - - description: The type of tax form you want to retrieve. Accepted values are - **US1099k** and **US1099nec** - name: formType - in: query - required: true - schema: - x-enum: - - value: US1099k - - value: US1099nec - enum: - - US1099k - - US1099nec - type: string - - description: The tax year in YYYY format for the tax form you want to retrieve - name: year - in: query - required: true - schema: - format: int32 - type: integer - responses: - '200': - content: - application/json: - examples: - success: - $ref: '#/components/examples/get-accountHolders-id-taxForms-success-200' - schema: - $ref: '#/components/schemas/GetTaxFormResponse' - description: OK - the request has succeeded. - '400': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + x-addedInVersion: '2' + x-sortIndex: 5 + x-methodName: getTaxForm /accountHolders/{id}/transactionRules: get: tags: @@ -487,73 +504,75 @@ paths: summary: Get all transaction rules for an account holder description: Returns a list of transaction rules associated with an account holder. - x-addedInVersion: '1' operationId: get-accountHolders-id-transactionRules - x-sortIndex: 18 - x-methodName: getAllTransactionRulesForAccountHolder - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the account holder. - name: id + - name: id in: path + description: The unique identifier of the account holder. required: true + style: simple + explode: false schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: schema: $ref: '#/components/schemas/TransactionRulesResponse' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 18 + x-methodName: getAllTransactionRulesForAccountHolder /balanceAccounts: post: tags: @@ -561,17 +580,12 @@ paths: summary: Create a balance account description: Creates a balance account that holds the funds of the associated account holder. - x-addedInVersion: '1' operationId: post-balanceAccounts - x-sortIndex: 1 - x-methodName: createBalanceAccount - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] requestBody: content: application/json: + schema: + $ref: '#/components/schemas/BalanceAccountInfo' examples: createBalanceAccount: $ref: '#/components/examples/post-balanceAccounts-createBalanceAccount' @@ -581,12 +595,13 @@ paths: $ref: '#/components/examples/post-balanceAccounts-createBalanceAccountGBP' createBalanceAccountUSD: $ref: '#/components/examples/post-balanceAccounts-createBalanceAccountUSD' - schema: - $ref: '#/components/schemas/BalanceAccountInfo' responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/BalanceAccount' examples: createBalanceAccount: $ref: '#/components/examples/post-balanceAccounts-createBalanceAccount-200' @@ -596,54 +611,58 @@ paths: $ref: '#/components/examples/post-balanceAccounts-createBalanceAccountGBP-200' createBalanceAccountUSD: $ref: '#/components/examples/post-balanceAccounts-createBalanceAccountUSD-200' - schema: - $ref: '#/components/schemas/BalanceAccount' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 1 + x-methodName: createBalanceAccount /balanceAccounts/{balanceAccountId}/sweeps: get: tags: @@ -654,91 +673,97 @@ paths: To fetch multiple pages, use the query parameters. For example, to limit the page to 5 sweeps and to skip the first 10, use `/balanceAccounts/{balanceAccountId}/sweeps?limit=5&offset=10`.' - x-addedInVersion: '2' operationId: get-balanceAccounts-balanceAccountId-sweeps - x-sortIndex: 7 - x-methodName: getAllSweepsForBalanceAccount + parameters: + - name: balanceAccountId + in: path + description: The unique identifier of the balance account. + required: true + style: simple + explode: false + schema: + type: string + - name: offset + in: query + description: The number of items that you want to skip. + required: false + style: form + explode: true + schema: + type: integer + format: int32 + - name: limit + in: query + description: The number of items returned per page, maximum 100 items. By + default, the response returns 10 items per page. + required: false + style: form + explode: true + schema: + type: integer + format: int32 + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/BalanceSweepConfigurationsResponse' + examples: + success: + $ref: '#/components/examples/get-balanceAccounts-balanceAccountId-sweeps-success-200' + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-400' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' security: - clientKey: [] - BasicAuth: [] - ApiKeyAuth: [] - parameters: - - description: The unique identifier of the balance account. - name: balanceAccountId - in: path - required: true - schema: - type: string - - description: The number of items that you want to skip. - name: offset - in: query - required: false - schema: - format: int32 - type: integer - - description: The number of items returned per page, maximum 100 items. By - default, the response returns 10 items per page. - name: limit - in: query - required: false - schema: - format: int32 - type: integer - responses: - '200': - content: - application/json: - examples: - success: - $ref: '#/components/examples/get-balanceAccounts-balanceAccountId-sweeps-success-200' - schema: - $ref: '#/components/schemas/BalanceSweepConfigurationsResponse' - description: OK - the request has succeeded. - '400': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + x-addedInVersion: '2' + x-sortIndex: 7 + x-methodName: getAllSweepsForBalanceAccount post: tags: - Balance accounts @@ -749,17 +774,21 @@ paths: A sweep pulls in or pushes out funds based on a defined schedule, amount, currency, and a source or a destination.' - x-addedInVersion: '2' operationId: post-balanceAccounts-balanceAccountId-sweeps - x-sortIndex: 5 - x-methodName: createSweep - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] + parameters: + - name: balanceAccountId + in: path + description: The unique identifier of the balance account. + required: true + style: simple + explode: false + schema: + type: string requestBody: content: application/json: + schema: + $ref: '#/components/schemas/CreateSweepConfigurationV2' examples: createSweep-pull: $ref: '#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-pull' @@ -767,19 +796,13 @@ paths: $ref: '#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-push' createSweep-push-priorities: $ref: '#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-push-priorities' - schema: - $ref: '#/components/schemas/CreateSweepConfigurationV2' - parameters: - - description: The unique identifier of the balance account. - name: balanceAccountId - in: path - required: true - schema: - type: string responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/SweepConfigurationV2' examples: createSweep-pull: $ref: '#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-pull-200' @@ -787,79 +810,165 @@ paths: $ref: '#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-push-200' createSweep-push-priorities: $ref: '#/components/examples/post-balanceAccounts-balanceAccountId-sweeps-createSweep-push-priorities-200' - schema: - $ref: '#/components/schemas/SweepConfigurationV2' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '2' + x-sortIndex: 5 + x-methodName: createSweep + /balanceAccounts/{balanceAccountId}/sweeps/{sweepId}: + get: + tags: + - Balance accounts + summary: Get a sweep + description: Returns a sweep. + operationId: get-balanceAccounts-balanceAccountId-sweeps-sweepId + parameters: + - name: balanceAccountId + in: path + description: The unique identifier of the balance account. + required: true + style: simple + explode: false + schema: + type: string + - name: sweepId + in: path + description: The unique identifier of the sweep. + required: true + style: simple + explode: false + schema: + type: string + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/SweepConfigurationV2' + examples: + success: + $ref: '#/components/examples/get-balanceAccounts-balanceAccountId-sweeps-sweepId-success-200' + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: schema: $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-400' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': description: Internal Server Error - the server could not process the request. - /balanceAccounts/{balanceAccountId}/sweeps/{sweepId}: + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '2' + x-sortIndex: 8 + x-methodName: getSweep delete: tags: - Balance accounts summary: Delete a sweep description: Deletes a sweep for a balance account. - x-addedInVersion: '2' operationId: delete-balanceAccounts-balanceAccountId-sweeps-sweepId - x-sortIndex: 9 - x-methodName: deleteSweep - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the balance account. - name: balanceAccountId + - name: balanceAccountId in: path + description: The unique identifier of the balance account. required: true + style: simple + explode: false schema: type: string - - description: The unique identifier of the sweep. - name: sweepId + - name: sweepId in: path + description: The unique identifier of the sweep. required: true + style: simple + explode: false schema: type: string responses: @@ -867,221 +976,151 @@ paths: description: 'No Content - look at the actual response code for the status of the request. ' '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. - get: - tags: - - Balance accounts - summary: Get a sweep - description: Returns a sweep. - x-addedInVersion: '2' - operationId: get-balanceAccounts-balanceAccountId-sweeps-sweepId - x-sortIndex: 8 - x-methodName: getSweep security: - clientKey: [] - BasicAuth: [] - ApiKeyAuth: [] - parameters: - - description: The unique identifier of the balance account. - name: balanceAccountId - in: path - required: true - schema: - type: string - - description: The unique identifier of the sweep. - name: sweepId - in: path - required: true - schema: - type: string - responses: - '200': - content: - application/json: - examples: - success: - $ref: '#/components/examples/get-balanceAccounts-balanceAccountId-sweeps-sweepId-success-200' - schema: - $ref: '#/components/schemas/SweepConfigurationV2' - description: OK - the request has succeeded. - '400': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + x-addedInVersion: '2' + x-sortIndex: 9 + x-methodName: deleteSweep patch: tags: - Balance accounts summary: Update a sweep description: Updates a sweep. When updating a sweep resource, note that if a request parameter is not provided, the parameter is left unchanged. - x-addedInVersion: '2' operationId: patch-balanceAccounts-balanceAccountId-sweeps-sweepId - x-sortIndex: 6 - x-methodName: updateSweep + parameters: + - name: balanceAccountId + in: path + description: The unique identifier of the balance account. + required: true + style: simple + explode: false + schema: + type: string + - name: sweepId + in: path + description: The unique identifier of the sweep. + required: true + style: simple + explode: false + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateSweepConfigurationV2' + examples: + updateSweep-status: + $ref: '#/components/examples/patch-balanceAccounts-balanceAccountId-sweeps-sweepId-updateSweep-status' + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/SweepConfigurationV2' + examples: + updateSweep-status: + $ref: '#/components/examples/patch-balanceAccounts-balanceAccountId-sweeps-sweepId-updateSweep-status-200' + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-400' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' security: - clientKey: [] - BasicAuth: [] - ApiKeyAuth: [] - requestBody: - content: - application/json: - examples: - updateSweep-status: - $ref: '#/components/examples/patch-balanceAccounts-balanceAccountId-sweeps-sweepId-updateSweep-status' - schema: - $ref: '#/components/schemas/UpdateSweepConfigurationV2' - parameters: - - description: The unique identifier of the balance account. - name: balanceAccountId - in: path - required: true - schema: - type: string - - description: The unique identifier of the sweep. - name: sweepId - in: path - required: true - schema: - type: string - responses: - '200': - content: - application/json: - examples: - updateSweep-status: - $ref: '#/components/examples/patch-balanceAccounts-balanceAccountId-sweeps-sweepId-updateSweep-status-200' - schema: - $ref: '#/components/schemas/SweepConfigurationV2' - description: OK - the request has succeeded. - '400': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + x-addedInVersion: '2' + x-sortIndex: 6 + x-methodName: updateSweep /balanceAccounts/{id}: get: tags: @@ -1089,159 +1128,163 @@ paths: summary: Get a balance account description: Returns a balance account and its balances for the default currency and other currencies with a non-zero balance. - x-addedInVersion: '1' operationId: get-balanceAccounts-id - x-sortIndex: 3 - x-methodName: getBalanceAccount - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the balance account. - name: id + - name: id in: path + description: The unique identifier of the balance account. required: true + style: simple + explode: false schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/BalanceAccount' examples: success: $ref: '#/components/examples/get-balanceAccounts-id-success-200' - schema: - $ref: '#/components/schemas/BalanceAccount' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 3 + x-methodName: getBalanceAccount patch: tags: - Balance accounts summary: Update a balance account description: Updates a balance account. - x-addedInVersion: '1' operationId: patch-balanceAccounts-id - x-sortIndex: 2 - x-methodName: updateBalanceAccount + parameters: + - name: id + in: path + description: The unique identifier of the balance account. + required: true + style: simple + explode: false + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BalanceAccountUpdateRequest' + examples: + updateBalanceAccount: + $ref: '#/components/examples/patch-balanceAccounts-id-updateBalanceAccount' + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/BalanceAccount' + examples: + updateBalanceAccount: + $ref: '#/components/examples/patch-balanceAccounts-id-updateBalanceAccount-200' + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-400' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' security: - clientKey: [] - BasicAuth: [] - ApiKeyAuth: [] - requestBody: - content: - application/json: - examples: - updateBalanceAccount: - $ref: '#/components/examples/patch-balanceAccounts-id-updateBalanceAccount' - schema: - $ref: '#/components/schemas/BalanceAccountUpdateRequest' - parameters: - - description: The unique identifier of the balance account. - name: id - in: path - required: true - schema: - type: string - responses: - '200': - content: - application/json: - examples: - updateBalanceAccount: - $ref: '#/components/examples/patch-balanceAccounts-id-updateBalanceAccount-200' - schema: - $ref: '#/components/schemas/BalanceAccount' - description: OK - the request has succeeded. - '400': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + x-addedInVersion: '1' + x-sortIndex: 2 + x-methodName: updateBalanceAccount /balanceAccounts/{id}/paymentInstruments: get: tags: @@ -1251,247 +1294,259 @@ paths: \ with a balance account. \n\nTo fetch multiple pages, use the query parameters.For\ \ example, to limit the page to 3 payment instruments which are in active\ \ status and to skip the first 6, use `/balanceAccounts/{id}/paymentInstruments?limit=3&offset=6&status=active`." - x-addedInVersion: '1' operationId: get-balanceAccounts-id-paymentInstruments - x-sortIndex: 4 - x-methodName: getPaymentInstrumentsLinkedToBalanceAccount - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the balance account. - name: id + - name: id in: path + description: The unique identifier of the balance account. required: true + style: simple + explode: false schema: type: string - - description: The number of items that you want to skip. - name: offset + - name: offset in: query + description: The number of items that you want to skip. required: false + style: form + explode: true schema: - format: int32 type: integer - - description: The number of items returned per page, maximum 100 items. By + format: int32 + - name: limit + in: query + description: The number of items returned per page, maximum 100 items. By default, the response returns 10 items per page. - name: limit - in: query required: false + style: form + explode: true schema: - format: int32 type: integer - - description: The status of the payment instruments that you want to get. By - default, the response includes payment instruments with any status. - name: status + format: int32 + - name: status in: query + description: The status of the payment instruments that you want to get. By + default, the response includes payment instruments with any status. required: false + style: form + explode: true schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/PaginatedPaymentInstrumentsResponse' examples: success: $ref: '#/components/examples/get-balanceAccounts-id-paymentInstruments-success-200' - schema: - $ref: '#/components/schemas/PaginatedPaymentInstrumentsResponse' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 4 + x-methodName: getPaymentInstrumentsLinkedToBalanceAccount /balanceAccounts/{id}/transactionRules: get: tags: - Balance accounts summary: Get all transaction rules for a balance account description: Returns a list of transaction rules associated with a balance account. - x-addedInVersion: '1' operationId: get-balanceAccounts-id-transactionRules - x-sortIndex: 14 - x-methodName: getAllTransactionRulesForBalanceAccount - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the balance account. - name: id + - name: id in: path + description: The unique identifier of the balance account. required: true + style: simple + explode: false schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: schema: $ref: '#/components/schemas/TransactionRulesResponse' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 18 + x-methodName: getAllTransactionRulesForBalanceAccount /balancePlatforms/{id}: get: tags: - Platform summary: Get a balance platform description: Returns a balance platform. - x-addedInVersion: '1' operationId: get-balancePlatforms-id - x-sortIndex: 1 - x-methodName: getBalancePlatform - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the balance platform. - name: id + - name: id in: path + description: The unique identifier of the balance platform. required: true + style: simple + explode: false schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/BalancePlatform' examples: success: $ref: '#/components/examples/get-balancePlatforms-id-success-200' - schema: - $ref: '#/components/schemas/BalancePlatform' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 1 + x-methodName: getBalancePlatform /balancePlatforms/{id}/accountHolders: get: tags: @@ -1501,477 +1556,515 @@ paths: \ to the balance platform. To fetch multiple pages, use the query parameters.\ \ \n\nFor example, to limit the page to 5 account holders and to skip the\ \ first 20, use `/balancePlatforms/{id}/accountHolders?limit=5&offset=20`." - x-addedInVersion: '1' operationId: get-balancePlatforms-id-accountHolders - x-sortIndex: 2 - x-methodName: getAllAccountHoldersUnderBalancePlatform + parameters: + - name: id + in: path + description: The unique identifier of the balance platform. + required: true + style: simple + explode: false + schema: + type: string + - name: offset + in: query + description: The number of items that you want to skip. + required: false + style: form + explode: true + schema: + type: integer + format: int32 + - name: limit + in: query + description: The number of items returned per page, maximum 100 items. By + default, the response returns 10 items per page. + required: false + style: form + explode: true + schema: + type: integer + format: int32 + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedAccountHoldersResponse' + examples: + success: + $ref: '#/components/examples/get-balancePlatforms-id-accountHolders-success-200' + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-400' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' security: - clientKey: [] - BasicAuth: [] - ApiKeyAuth: [] - parameters: - - description: The unique identifier of the balance platform. - name: id - in: path - required: true - schema: - type: string - - description: The number of items that you want to skip. - name: offset - in: query - required: false - schema: - format: int32 - type: integer - - description: The number of items returned per page, maximum 100 items. By - default, the response returns 10 items per page. - name: limit - in: query - required: false - schema: - format: int32 - type: integer - responses: - '200': - content: - application/json: - examples: - success: - $ref: '#/components/examples/get-balancePlatforms-id-accountHolders-success-200' - schema: - $ref: '#/components/schemas/PaginatedAccountHoldersResponse' - description: OK - the request has succeeded. - '400': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + x-addedInVersion: '1' + x-sortIndex: 2 + x-methodName: getAllAccountHoldersUnderBalancePlatform /balancePlatforms/{id}/transactionRules: get: tags: - Platform summary: Get all transaction rules for a balance platform description: Returns a list of transaction rules associated with a balance platform. - x-addedInVersion: '1' operationId: get-balancePlatforms-id-transactionRules - x-sortIndex: 5 - x-methodName: getAllTransactionRulesForBalancePlatform - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the balance platform. - name: id + - name: id in: path + description: The unique identifier of the balance platform. required: true + style: simple + explode: false schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: schema: $ref: '#/components/schemas/TransactionRulesResponse' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 5 + x-methodName: getAllTransactionRulesForBalancePlatform /cardorders: get: tags: - Card orders summary: Get a list of card orders description: Returns a paginated list of card orders. - x-addedInVersion: '1' operationId: get-cardorders - x-sortIndex: 1 - x-methodName: listCardOrders - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: 'The unique identifier of the card order. ' - name: id + - name: id in: query + description: 'The unique identifier of the card order. ' required: false + style: form + explode: true schema: type: string - - description: The unique identifier of the card manufacturer profile. - name: cardManufacturingProfileId + - name: cardManufacturingProfileId in: query + description: The unique identifier of the card manufacturer profile. required: false + style: form + explode: true schema: type: string - - description: The status of the card order. - name: status + - name: status in: query + description: The status of the card order. required: false + style: form + explode: true schema: type: string - - description: 'The unique code of the card manufacturer profile. + - name: txVariantCode + in: query + description: 'The unique code of the card manufacturer profile. Possible values: **mcmaestro**, **mc**, **visa**, **mcdebit**. ' - name: txVariantCode - in: query required: false + style: form + explode: true schema: type: string - - description: Only include card orders that have been created on or after this + - name: createdSince + in: query + description: Only include card orders that have been created on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. - name: createdSince - in: query required: false + style: form + explode: true schema: - format: date-time type: string - - description: Only include card orders that have been created on or before + format: date-time + - name: createdUntil + in: query + description: Only include card orders that have been created on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. - name: createdUntil - in: query required: false + style: form + explode: true schema: - format: date-time type: string - - description: Only include card orders that have been locked on or after this + format: date-time + - name: lockedSince + in: query + description: Only include card orders that have been locked on or after this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. - name: lockedSince - in: query required: false + style: form + explode: true schema: - format: date-time type: string - - description: Only include card orders that have been locked on or before this + format: date-time + - name: lockedUntil + in: query + description: Only include card orders that have been locked on or before this point in time. The value must be in ISO 8601 format. For example, **2021-05-30T15:07:40Z**. - name: lockedUntil - in: query required: false + style: form + explode: true schema: - format: date-time type: string - - description: 'The service center at which the card is issued. The value is + format: date-time + - name: serviceCenter + in: query + description: 'The service center at which the card is issued. The value is case-sensitive. ' - name: serviceCenter - in: query required: false + style: form + explode: true schema: type: string - - description: 'Specifies the position of an element in a list of card orders. + - name: offset + in: query + description: 'Specifies the position of an element in a list of card orders. The response includes a list of card orders that starts at the specified offset. **Default:** 0, which means that the response contains all the elements in the list of card orders.' - name: offset - in: query required: false + style: form + explode: true schema: - format: int32 type: integer - - description: The number of card orders returned per page. **Default:** 10. - name: limit + format: int32 + - name: limit in: query + description: The number of card orders returned per page. **Default:** 10. required: false + style: form + explode: true schema: - format: int32 type: integer + format: int32 responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/PaginatedGetCardOrderResponse' examples: success: $ref: '#/components/examples/get-cardorders-success-200' - schema: - $ref: '#/components/schemas/PaginatedGetCardOrderResponse' - description: OK - the request has succeeded. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 1 + x-methodName: listCardOrders /cardorders/{id}/items: get: tags: - Card orders summary: Get card order items description: Returns the item list of a specific card order. - x-addedInVersion: '1' operationId: get-cardorders-id-items - x-sortIndex: 2 - x-methodName: getCardOrderItems - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the card order. - name: id + - name: id in: path + description: The unique identifier of the card order. required: true + style: simple + explode: false schema: type: string - - description: 'Specifies the position of an element in a list of card orders. + - name: offset + in: query + description: 'Specifies the position of an element in a list of card orders. The response includes a list of card order items that starts at the specified offset. **Default:** 0, which means that the response contains all the elements in the list of card order items.' - name: offset - in: query required: false + style: form + explode: true schema: - format: int32 type: integer - - description: The number of card order items returned per page. **Default:** + format: int32 + - name: limit + in: query + description: The number of card order items returned per page. **Default:** 10. - name: limit - in: query required: false + style: form + explode: true schema: - format: int32 type: integer + format: int32 responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/PaginatedGetCardOrderItemResponse' examples: success: $ref: '#/components/examples/get-cardorders-id-items-success-200' - schema: - $ref: '#/components/schemas/PaginatedGetCardOrderItemResponse' - description: OK - the request has succeeded. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 2 + x-methodName: getCardOrderItems /grantAccounts/{id}: get: tags: - Grant accounts summary: Get a grant account description: Returns the details of the [grant account](https://docs.adyen.com/platforms/capital#grant-account). + operationId: get-grantAccounts-id + parameters: + - name: id + in: path + description: The unique identifier of the grant account. + required: true + style: simple + explode: false + schema: + type: string + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/CapitalGrantAccount' + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-400' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' deprecated: true + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] x-deprecatedInVersion: '2' x-deprecatedMessage: Use the `/grantAccounts/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantAccounts/(id)) instead. x-addedInVersion: '1' - operationId: get-grantAccounts-id x-sortIndex: 1 x-methodName: getGrantAccount - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] - parameters: - - description: The unique identifier of the grant account. - name: id - in: path - required: true - schema: - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CapitalGrantAccount' - description: OK - the request has succeeded. - '400': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. /grantOffers: get: tags: @@ -1979,284 +2072,292 @@ paths: summary: Get all available grant offers description: Returns a list of all [grant offers](https://docs.adyen.com/platforms/capital#grant-offers) available for `accountHolderId` specified as a query parameter. - deprecated: true - x-deprecatedInVersion: '2' - x-deprecatedMessage: Use the `/grantOffers` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) - instead. - x-addedInVersion: '2' operationId: get-grantOffers - x-sortIndex: 1 - x-methodName: getAllAvailableGrantOffers - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the grant account. - name: accountHolderId + - name: accountHolderId in: query + description: The unique identifier of the grant account. required: true + style: form + explode: true schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: schema: $ref: '#/components/schemas/GrantOffers' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + deprecated: true + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-deprecatedInVersion: '2' + x-deprecatedMessage: Use the `/grantOffers` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers) + instead. + x-addedInVersion: '2' + x-sortIndex: 1 + x-methodName: getAllAvailableGrantOffers /grantOffers/{grantOfferId}: get: tags: - Grant offers summary: Get a grant offer description: Returns the details of a single grant offer. + operationId: get-grantOffers-grantOfferId + parameters: + - name: grantOfferId + in: path + description: The unique identifier of the grant offer. + required: true + style: simple + explode: false + schema: + type: string + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/GrantOffer' + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-400' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' deprecated: true + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] x-deprecatedInVersion: '2' x-deprecatedMessage: Use the `/grantOffers/{id}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grantOffers/(id)) instead. x-addedInVersion: '2' - operationId: get-grantOffers-grantOfferId x-sortIndex: 1 x-methodName: getGrantOffer - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] - parameters: - - description: The unique identifier of the grant offer. - name: grantOfferId - in: path - required: true - schema: - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/GrantOffer' - description: OK - the request has succeeded. - '400': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. /networkTokens/{networkTokenId}: get: tags: - Network tokens summary: Get a network token description: Returns the details of a network token. - x-addedInVersion: '1' operationId: get-networkTokens-networkTokenId - x-sortIndex: 1 - x-methodName: getNetworkToken - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the network token. - name: networkTokenId + - name: networkTokenId in: path + description: The unique identifier of the network token. required: true + style: simple + explode: false schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: schema: $ref: '#/components/schemas/GetNetworkTokenResponse' - description: OK - the request has succeeded. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 1 + x-methodName: getNetworkToken patch: tags: - Network tokens summary: Update a network token description: Updates the status of the network token. - x-addedInVersion: '1' operationId: patch-networkTokens-networkTokenId - x-sortIndex: 2 - x-methodName: updateNetworkToken - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] + parameters: + - name: networkTokenId + in: path + description: The unique identifier of the network token. + required: true + style: simple + explode: false + schema: + type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/UpdateNetworkTokenRequest' - parameters: - - description: The unique identifier of the network token. - name: networkTokenId - in: path - required: true - schema: - type: string responses: '202': description: 'No Content - look at the actual response code for the status of the request. ' '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 2 + x-methodName: updateNetworkToken /paymentInstrumentGroups: post: tags: @@ -2265,153 +2366,155 @@ paths: description: Creates a payment instrument group to associate and group payment instrument resources together. You can apply a transaction rule to a payment instrument group. - x-addedInVersion: '1' operationId: post-paymentInstrumentGroups - x-sortIndex: 1 - x-methodName: createPaymentInstrumentGroup + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PaymentInstrumentGroupInfo' + examples: + createPaymentInstrumentGroups: + $ref: '#/components/examples/post-paymentInstrumentGroups-createPaymentInstrumentGroups' + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/PaymentInstrumentGroup' + examples: + createPaymentInstrumentGroups: + $ref: '#/components/examples/post-paymentInstrumentGroups-createPaymentInstrumentGroups-200' + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-400' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' security: - clientKey: [] - BasicAuth: [] - ApiKeyAuth: [] - requestBody: - content: - application/json: - examples: - createPaymentInstrumentGroups: - $ref: '#/components/examples/post-paymentInstrumentGroups-createPaymentInstrumentGroups' - schema: - $ref: '#/components/schemas/PaymentInstrumentGroupInfo' - responses: - '200': - content: - application/json: - examples: - createPaymentInstrumentGroups: - $ref: '#/components/examples/post-paymentInstrumentGroups-createPaymentInstrumentGroups-200' - schema: - $ref: '#/components/schemas/PaymentInstrumentGroup' - description: OK - the request has succeeded. - '400': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + x-addedInVersion: '1' + x-sortIndex: 1 + x-methodName: createPaymentInstrumentGroup /paymentInstrumentGroups/{id}: get: tags: - Payment instrument groups summary: Get a payment instrument group description: Returns the details of a payment instrument group. - x-addedInVersion: '1' operationId: get-paymentInstrumentGroups-id - x-sortIndex: 2 - x-methodName: getPaymentInstrumentGroup - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the payment instrument group. - name: id + - name: id in: path + description: The unique identifier of the payment instrument group. required: true + style: simple + explode: false schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/PaymentInstrumentGroup' examples: success: $ref: '#/components/examples/get-paymentInstrumentGroups-id-success-200' - schema: - $ref: '#/components/schemas/PaymentInstrumentGroup' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 2 + x-methodName: getPaymentInstrumentGroup /paymentInstrumentGroups/{id}/transactionRules: get: tags: @@ -2419,76 +2522,78 @@ paths: summary: Get all transaction rules for a payment instrument group description: Returns a list of all the transaction rules associated with a payment instrument group. - x-addedInVersion: '1' operationId: get-paymentInstrumentGroups-id-transactionRules - x-sortIndex: 3 - x-methodName: getAllTransactionRulesForPaymentInstrumentGroup - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the payment instrument group. - name: id + - name: id in: path + description: The unique identifier of the payment instrument group. required: true + style: simple + explode: false schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/TransactionRulesResponse' examples: success: $ref: '#/components/examples/get-paymentInstrumentGroups-id-transactionRules-success-200' - schema: - $ref: '#/components/schemas/TransactionRulesResponse' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 3 + x-methodName: getAllTransactionRulesForPaymentInstrumentGroup /paymentInstruments: post: tags: @@ -2498,17 +2603,12 @@ paths: \ card, or a business account to your user.\n\n For more information, refer\ \ to [Issue cards](https://docs.adyen.com/issuing/create-cards) or [Issue\ \ business accounts](https://docs.adyen.com/platforms/business-accounts)." - x-addedInVersion: '1' operationId: post-paymentInstruments - x-sortIndex: 1 - x-methodName: createPaymentInstrument - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] requestBody: content: application/json: + schema: + $ref: '#/components/schemas/PaymentInstrumentInfo' examples: createBusinessAccountNL: $ref: '#/components/examples/post-paymentInstruments-createBusinessAccountNL' @@ -2524,12 +2624,13 @@ paths: $ref: '#/components/examples/post-paymentInstruments-createPhysicalCard' createVirtualCard: $ref: '#/components/examples/post-paymentInstruments-createVirtualCard' - schema: - $ref: '#/components/schemas/PaymentInstrumentInfo' responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/PaymentInstrument' examples: createBusinessAccountNL: $ref: '#/components/examples/post-paymentInstruments-createBusinessAccountNL-200' @@ -2545,54 +2646,58 @@ paths: $ref: '#/components/examples/post-paymentInstruments-createPhysicalCard-200' createVirtualCard: $ref: '#/components/examples/post-paymentInstruments-createVirtualCard-200' - schema: - $ref: '#/components/schemas/PaymentInstrument' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 1 + x-methodName: createPaymentInstrument /paymentInstruments/reveal: post: tags: @@ -2615,14 +2720,7 @@ paths: To make this request, your API credential must have the following role: * Bank Issuing PAN Reveal Webservice role' - x-addedInVersion: '1' operationId: post-paymentInstruments-reveal - x-sortIndex: 4 - x-methodName: revealDataOfPaymentInstrument - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] requestBody: content: application/json: @@ -2630,132 +2728,141 @@ paths: $ref: '#/components/schemas/PaymentInstrumentRevealRequest' responses: '200': + description: OK - the request has succeeded. content: application/json: schema: $ref: '#/components/schemas/PaymentInstrumentRevealResponse' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 4 + x-methodName: revealDataOfPaymentInstrument /paymentInstruments/{id}: get: tags: - Payment instruments summary: Get a payment instrument description: Returns the details of a payment instrument. - x-addedInVersion: '1' operationId: get-paymentInstruments-id - x-sortIndex: 3 - x-methodName: getPaymentInstrument - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the payment instrument. - name: id + - name: id in: path + description: The unique identifier of the payment instrument. required: true + style: simple + explode: false schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/PaymentInstrument' examples: success: $ref: '#/components/examples/get-paymentInstruments-id-success-200' - schema: - $ref: '#/components/schemas/PaymentInstrument' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 3 + x-methodName: getPaymentInstrument patch: tags: - Payment instruments @@ -2763,161 +2870,165 @@ paths: description: Updates a payment instrument. Once a payment instrument is already active, you can only update its status. However, for cards created with **inactive** status, you can still update the balance account associated with the card. - x-addedInVersion: '1' operationId: patch-paymentInstruments-id - x-sortIndex: 2 - x-methodName: updatePaymentInstrument - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] + parameters: + - name: id + in: path + description: The unique identifier of the payment instrument. + required: true + style: simple + explode: false + schema: + type: string requestBody: content: application/json: + schema: + $ref: '#/components/schemas/PaymentInstrumentUpdateRequest' examples: updatePaymentInstrumentBalanceAccount: $ref: '#/components/examples/patch-paymentInstruments-id-updatePaymentInstrumentBalanceAccount' updatePaymentInstrumentStatus: $ref: '#/components/examples/patch-paymentInstruments-id-updatePaymentInstrumentStatus' - schema: - $ref: '#/components/schemas/PaymentInstrumentUpdateRequest' - parameters: - - description: The unique identifier of the payment instrument. - name: id - in: path - required: true - schema: - type: string responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/UpdatePaymentInstrument' examples: updatePaymentInstrumentBalanceAccount: $ref: '#/components/examples/patch-paymentInstruments-id-updatePaymentInstrumentBalanceAccount-200' updatePaymentInstrumentStatus: $ref: '#/components/examples/patch-paymentInstruments-id-updatePaymentInstrumentStatus-200' - schema: - $ref: '#/components/schemas/UpdatePaymentInstrument' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 2 + x-methodName: updatePaymentInstrument /paymentInstruments/{id}/networkTokens: get: tags: - Payment instruments summary: List network tokens description: List the network tokens connected to a payment instrument. - x-addedInVersion: '1' operationId: get-paymentInstruments-id-networkTokens - x-sortIndex: 6 - x-methodName: listNetworkTokens - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the payment instrument. - name: id + - name: id in: path + description: The unique identifier of the payment instrument. required: true + style: simple + explode: false schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: schema: $ref: '#/components/schemas/ListNetworkTokensResponse' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 6 + x-methodName: listNetworkTokens /paymentInstruments/{id}/reveal: get: tags: @@ -2930,152 +3041,156 @@ paths: * Balance Platform BCL PCI role' - x-addedInVersion: '1' operationId: get-paymentInstruments-id-reveal - x-sortIndex: 5 - x-methodName: getPanOfPaymentInstrument - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the payment instrument. - name: id + - name: id in: path + description: The unique identifier of the payment instrument. required: true + style: simple + explode: false schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/PaymentInstrumentRevealInfo' examples: success: $ref: '#/components/examples/get-paymentInstruments-id-reveal-success-200' - schema: - $ref: '#/components/schemas/PaymentInstrumentRevealInfo' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 5 + x-methodName: getPanOfPaymentInstrument /paymentInstruments/{id}/transactionRules: get: tags: - Payment instruments summary: Get all transaction rules for a payment instrument description: Returns a list of transaction rules associated with a payment instrument. - x-addedInVersion: '1' operationId: get-paymentInstruments-id-transactionRules - x-sortIndex: 7 - x-methodName: getAllTransactionRulesForPaymentInstrument - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the payment instrument. - name: id + - name: id in: path + description: The unique identifier of the payment instrument. required: true + style: simple + explode: false schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/TransactionRulesResponse' examples: success: $ref: '#/components/examples/get-paymentInstruments-id-transactionRules-success-200' - schema: - $ref: '#/components/schemas/TransactionRulesResponse' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 7 + x-methodName: getAllTransactionRulesForPaymentInstrument /pins/change: post: tags: @@ -3088,68 +3203,68 @@ paths: To make this request, your API credential must have the following role: * Bank Issuing PIN Change Webservice role' - x-addedInVersion: '1' operationId: post-pins-change - x-sortIndex: 2 - x-methodName: changeCardPin + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PinChangeRequest' + examples: + requestPinChange: + $ref: '#/components/examples/post-pins-change-requestPinChange' + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/PinChangeResponse' + examples: + requestPinChange: + $ref: '#/components/examples/post-pins-change-requestPinChange-200' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' security: - clientKey: [] - BasicAuth: [] - ApiKeyAuth: [] - requestBody: - content: - application/json: - examples: - requestPinChange: - $ref: '#/components/examples/post-pins-change-requestPinChange' - schema: - $ref: '#/components/schemas/PinChangeRequest' - responses: - '200': - content: - application/json: - examples: - requestPinChange: - $ref: '#/components/examples/post-pins-change-requestPinChange-200' - schema: - $ref: '#/components/schemas/PinChangeResponse' - description: OK - the request has succeeded. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + x-addedInVersion: '1' + x-sortIndex: 2 + x-methodName: changeCardPin /pins/reveal: post: tags: @@ -3162,68 +3277,68 @@ paths: To make this request, your API credential must have the following role: * Bank Issuing PIN Reveal Webservice role' - x-addedInVersion: '1' operationId: post-pins-reveal - x-sortIndex: 2 - x-methodName: revealCardPin + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RevealPinRequest' + examples: + requestPinBlock: + $ref: '#/components/examples/post-pins-reveal-requestPinBlock' + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/RevealPinResponse' + examples: + requestPinBlock: + $ref: '#/components/examples/post-pins-reveal-requestPinBlock-200' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' security: - clientKey: [] - BasicAuth: [] - ApiKeyAuth: [] - requestBody: - content: - application/json: - examples: - requestPinBlock: - $ref: '#/components/examples/post-pins-reveal-requestPinBlock' - schema: - $ref: '#/components/schemas/RevealPinRequest' - responses: - '200': - content: - application/json: - examples: - requestPinBlock: - $ref: '#/components/examples/post-pins-reveal-requestPinBlock-200' - schema: - $ref: '#/components/schemas/RevealPinResponse' - description: OK - the request has succeeded. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + x-addedInVersion: '1' + x-sortIndex: 2 + x-methodName: revealCardPin /publicKey: get: tags: @@ -3234,85 +3349,89 @@ paths: \ key to generate the `encryptedKey` required to:\n- [Change a PIN](https://docs.adyen.com/api-explorer/balanceplatform/2/post/pins/change).\n\ - [Reveal a PIN](https://docs.adyen.com/api-explorer/balanceplatform/2/post/pins/reveal).\n\ - [Reveal a PAN](https://docs.adyen.com/api-explorer/balanceplatform/2/post/paymentInstruments/reveal)." - x-addedInVersion: '1' operationId: get-publicKey - x-sortIndex: 3 - x-methodName: publicKey - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: 'The purpose of the public key. + - name: purpose + in: query + description: 'The purpose of the public key. Possible values: **pinChange**, **pinReveal**, **panReveal**. Default value: **pinReveal**.' - name: purpose - in: query required: false + style: form + explode: true schema: type: string - - description: 'The encoding format of public key. + - name: format + in: query + description: 'The encoding format of public key. Possible values: **jwk**, **pem**. Default value: **pem**.' - name: format - in: query required: false + style: form + explode: true schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/PublicKeyResponse' examples: success: $ref: '#/components/examples/get-publicKey-success-200' - schema: - $ref: '#/components/schemas/PublicKeyResponse' - description: OK - the request has succeeded. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 3 + x-methodName: publicKey /registeredDevices: get: tags: @@ -3320,95 +3439,101 @@ paths: summary: Get a list of registered SCA devices description: Get a paginated list of the SCA devices you have currently registered for a specific payment instrument. - x-addedInVersion: '1' operationId: get-registeredDevices - x-sortIndex: 3 - x-methodName: listRegisteredScaDevices - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of a payment instrument. It limits the - returned list to SCA devices associated to this payment instrument. - name: paymentInstrumentId + - name: paymentInstrumentId in: query + description: The unique identifier of a payment instrument. It limits the + returned list to SCA devices associated to this payment instrument. required: true + style: form + explode: true schema: type: string - - description: 'The index of the page to retrieve. The index of the first page + - name: pageNumber + in: query + description: 'The index of the page to retrieve. The index of the first page is 0 (zero). Default: 0.' - name: pageNumber - in: query required: false + style: form + explode: true schema: - format: int32 type: integer - - description: 'The number of items to have on a page. + format: int32 + - name: pageSize + in: query + description: 'The number of items to have on a page. Default: 20. Maximum: 100.' - name: pageSize - in: query required: false + style: form + explode: true schema: - format: int32 type: integer + format: int32 responses: '200': + description: OK - the request has succeeded. content: application/json: schema: $ref: '#/components/schemas/SearchRegisteredDevicesResponse' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 3 + x-methodName: listRegisteredScaDevices post: tags: - Manage SCA devices @@ -3419,14 +3544,7 @@ paths: For a successful request, the device must be eligible for SCA.' - x-addedInVersion: '1' operationId: post-registeredDevices - x-sortIndex: 1 - x-methodName: initiateRegistrationOfScaDevice - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] requestBody: content: application/json: @@ -3434,57 +3552,147 @@ paths: $ref: '#/components/schemas/RegisterSCARequest' responses: '200': + description: OK - the request has succeeded. content: application/json: schema: $ref: '#/components/schemas/RegisterSCAResponse' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 1 + x-methodName: initiateRegistrationOfScaDevice + /registeredDevices/{deviceId}/associations: + post: + tags: + - Manage SCA devices + summary: Initiate an association between an SCA device and a resource + description: Initiates an association between a user's registered SCA device + and an Adyen resource. For example, you can associate an SCA device with additional + [business accounts](https://docs.adyen.com/platforms/business-accounts/sca/register-devices) + or [Adyen-issued cards](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/register-devices). + operationId: post-registeredDevices-deviceId-associations + parameters: + - name: deviceId + in: path + description: The unique identifier of the SCA device that you are associating + with a resource. + required: true + style: simple + explode: false + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AssociationInitiateRequest' + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/AssociationInitiateResponse' + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: schema: $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-400' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': description: Internal Server Error - the server could not process the request. - /registeredDevices/{deviceId}/associations: + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '2' + x-sortIndex: 4 + x-methodName: initiateAssociationBetweenScaDeviceAndResource patch: tags: - Manage SCA devices @@ -3497,160 +3705,81 @@ paths: To complete the association, this endpoint validates the authentication data of the registered device.' - x-addedInVersion: '2' operationId: patch-registeredDevices-deviceId-associations - x-sortIndex: 5 - x-methodName: completeAssociationBetweenScaDeviceAndResource - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] + parameters: + - name: deviceId + in: path + description: The unique identifier of the SCA device that you are associating + with a resource. + required: true + style: simple + explode: false + schema: + type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/AssociationFinaliseRequest' - parameters: - - description: The unique identifier of the SCA device that you are associating - with a resource. - name: deviceId - in: path - required: true - schema: - type: string responses: '200': + description: OK - the request has succeeded. content: application/json: schema: $ref: '#/components/schemas/AssociationFinaliseResponse' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. - post: - tags: - - Manage SCA devices - summary: Initiate an association between an SCA device and a resource - description: Initiates an association between a user's registered SCA device - and an Adyen resource. For example, you can associate an SCA device with additional - [business accounts](https://docs.adyen.com/platforms/business-accounts/sca/register-devices) - or [Adyen-issued cards](https://docs.adyen.com/issuing/3d-secure/oob-auth-sdk/register-devices). - x-addedInVersion: '2' - operationId: post-registeredDevices-deviceId-associations - x-sortIndex: 4 - x-methodName: initiateAssociationBetweenScaDeviceAndResource security: - clientKey: [] - BasicAuth: [] - ApiKeyAuth: [] - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AssociationInitiateRequest' - parameters: - - description: The unique identifier of the SCA device that you are associating - with a resource. - name: deviceId - in: path - required: true - schema: - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/AssociationInitiateResponse' - description: OK - the request has succeeded. - '400': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + x-addedInVersion: '2' + x-sortIndex: 5 + x-methodName: completeAssociationBetweenScaDeviceAndResource /registeredDevices/{id}: delete: tags: @@ -3658,26 +3787,23 @@ paths: summary: Delete a registration of an SCA device description: Deletes an SCA device from the list of registered devices of a specific payment instrument. - x-addedInVersion: '1' operationId: delete-registeredDevices-id - x-sortIndex: 6 - x-methodName: deleteRegistrationOfScaDevice - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the SCA device. - name: id + - name: id in: path + description: The unique identifier of the SCA device. required: true + style: simple + explode: false schema: type: string - - description: The unique identifier of the payment instrument linked to the - SCA device. - name: paymentInstrumentId + - name: paymentInstrumentId in: query + description: The unique identifier of the payment instrument linked to the + SCA device. required: true + style: form + explode: true schema: type: string responses: @@ -3685,50 +3811,57 @@ paths: description: 'No Content - look at the actual response code for the status of the request. ' '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 6 + x-methodName: deleteRegistrationOfScaDevice patch: tags: - Manage SCA devices @@ -3740,80 +3873,82 @@ paths: ' - x-addedInVersion: '1' operationId: patch-registeredDevices-id - x-sortIndex: 2 - x-methodName: completeRegistrationOfScaDevice - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] + parameters: + - name: id + in: path + description: The unique identifier of the SCA device. You obtain this `id` + in the response of a POST [/registeredDevices](https://docs.adyen.com/api-explorer/balanceplatform/2/post/registeredDevices#responses-200-id) + request. + required: true + style: simple + explode: false + schema: + type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/RegisterSCARequest' - parameters: - - description: The unique identifier of the SCA device. You obtain this `id` - in the response of a POST [/registeredDevices](https://docs.adyen.com/api-explorer/balanceplatform/2/post/registeredDevices#responses-200-id) - request. - name: id - in: path - required: true - schema: - type: string responses: '200': + description: OK - the request has succeeded. content: application/json: schema: $ref: '#/components/schemas/RegisterSCAFinalResponse' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 2 + x-methodName: completeRegistrationOfScaDevice /transactionRules: post: tags: @@ -3825,17 +3960,12 @@ paths: transaction rule. You can apply the transaction rule to several cards, such as all the cards in your platform, or to a specific card. For use cases, see [examples](https://docs.adyen.com/issuing/transaction-rules/examples). - x-addedInVersion: '1' operationId: post-transactionRules - x-sortIndex: 1 - x-methodName: createTransactionRule - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] requestBody: content: application/json: + schema: + $ref: '#/components/schemas/TransactionRuleInfo' examples: createTransactionRuleAllowPos: $ref: '#/components/examples/post-transactionRules-createTransactionRuleAllowPos' @@ -3845,12 +3975,13 @@ paths: $ref: '#/components/examples/post-transactionRules-createTransactionRuleLimitSliding' createTransactionRuleLimitTransaction: $ref: '#/components/examples/post-transactionRules-createTransactionRuleLimitTransaction' - schema: - $ref: '#/components/schemas/TransactionRuleInfo' responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/TransactionRule' examples: createTransactionRuleAllowPos: $ref: '#/components/examples/post-transactionRules-createTransactionRuleAllowPos-200' @@ -3860,205 +3991,213 @@ paths: $ref: '#/components/examples/post-transactionRules-createTransactionRuleLimitSliding-200' createTransactionRuleLimitTransaction: $ref: '#/components/examples/post-transactionRules-createTransactionRuleLimitTransaction-200' - schema: - $ref: '#/components/schemas/TransactionRule' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. - /transactionRules/{transactionRuleId}: - delete: - tags: - - Transaction rules - summary: Delete a transaction rule - description: Deletes a transaction rule. - x-addedInVersion: '1' - operationId: delete-transactionRules-transactionRuleId - x-sortIndex: 5 - x-methodName: deleteTransactionRule security: - clientKey: [] - BasicAuth: [] - ApiKeyAuth: [] - parameters: - - description: The unique identifier of the transaction rule. - name: transactionRuleId - in: path - required: true - schema: - type: string - responses: - '200': - content: - application/json: - examples: - success: - $ref: '#/components/examples/delete-transactionRules-transactionRuleId-success-200' - schema: - $ref: '#/components/schemas/TransactionRule' - description: OK - the request has succeeded. - '400': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + x-addedInVersion: '1' + x-sortIndex: 1 + x-methodName: createTransactionRule + /transactionRules/{transactionRuleId}: get: tags: - Transaction rules summary: Get a transaction rule description: Returns the details of a transaction rule. - x-addedInVersion: '1' operationId: get-transactionRules-transactionRuleId - x-sortIndex: 2 - x-methodName: getTransactionRule - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] parameters: - - description: The unique identifier of the transaction rule. - name: transactionRuleId + - name: transactionRuleId in: path + description: The unique identifier of the transaction rule. required: true + style: simple + explode: false schema: type: string responses: '200': + description: OK - the request has succeeded. content: application/json: + schema: + $ref: '#/components/schemas/TransactionRuleResponse' examples: success: $ref: '#/components/examples/get-transactionRules-transactionRuleId-success-200' - schema: - $ref: '#/components/schemas/TransactionRuleResponse' - description: OK - the request has succeeded. '400': + description: Bad Request - a problem reading or understanding the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 2 + x-methodName: getTransactionRule + delete: + tags: + - Transaction rules + summary: Delete a transaction rule + description: Deletes a transaction rule. + operationId: delete-transactionRules-transactionRuleId + parameters: + - name: transactionRuleId + in: path + description: The unique identifier of the transaction rule. + required: true + style: simple + explode: false + schema: + type: string + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionRule' + examples: + success: + $ref: '#/components/examples/delete-transactionRules-transactionRuleId-success-200' + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: schema: $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-400' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 5 + x-methodName: deleteTransactionRule patch: tags: - Transaction rules @@ -4068,84 +4207,86 @@ paths: \ not provided in the request are left unchanged.\n\n* When updating any other\ \ parameter, you need to send all existing resource parameters. If you omit\ \ a parameter in the request, that parameter is removed from the resource." - x-addedInVersion: '1' operationId: patch-transactionRules-transactionRuleId - x-sortIndex: 3 - x-methodName: updateTransactionRule + parameters: + - name: transactionRuleId + in: path + description: The unique identifier of the transaction rule. + required: true + style: simple + explode: false + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionRuleInfo' + examples: + updateTransactionRuleStatus: + $ref: '#/components/examples/patch-transactionRules-transactionRuleId-updateTransactionRuleStatus' + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionRule' + examples: + updateTransactionRuleStatus: + $ref: '#/components/examples/patch-transactionRules-transactionRuleId-updateTransactionRuleStatus-200' + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-400' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' security: - clientKey: [] - BasicAuth: [] - ApiKeyAuth: [] - requestBody: - content: - application/json: - examples: - updateTransactionRuleStatus: - $ref: '#/components/examples/patch-transactionRules-transactionRuleId-updateTransactionRuleStatus' - schema: - $ref: '#/components/schemas/TransactionRuleInfo' - parameters: - - description: The unique identifier of the transaction rule. - name: transactionRuleId - in: path - required: true - schema: - type: string - responses: - '200': - content: - application/json: - examples: - updateTransactionRuleStatus: - $ref: '#/components/examples/patch-transactionRules-transactionRuleId-updateTransactionRuleStatus-200' - schema: - $ref: '#/components/schemas/TransactionRule' - description: OK - the request has succeeded. - '400': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-400' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Bad Request - a problem reading or understanding the request. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + x-addedInVersion: '1' + x-sortIndex: 3 + x-methodName: updateTransactionRule /transferRoutes/calculate: post: tags: @@ -4155,68 +4296,68 @@ paths: `country`, `currency`, `counterparty`, and `priorities`. Use this endpoint to find optimal transfer priorities and associated requirements before you [make a transfer](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers). - x-addedInVersion: '1' operationId: post-transferRoutes-calculate - x-sortIndex: 1 - x-methodName: calculateTransferRoutes + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TransferRouteRequest' + examples: + transferRoutesCalculate: + $ref: '#/components/examples/post-transferRoutes-calculate-transferRoutesCalculate' + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/TransferRouteResponse' + examples: + transferRoutesCalculate: + $ref: '#/components/examples/post-transferRoutes-calculate-transferRoutesCalculate-200' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-401' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-403' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-422' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/RestServiceError' + examples: + generic: + $ref: '#/components/examples/generic-500' security: - clientKey: [] - BasicAuth: [] - ApiKeyAuth: [] - requestBody: - content: - application/json: - examples: - transferRoutesCalculate: - $ref: '#/components/examples/post-transferRoutes-calculate-transferRoutesCalculate' - schema: - $ref: '#/components/schemas/TransferRouteRequest' - responses: - '200': - content: - application/json: - examples: - transferRoutesCalculate: - $ref: '#/components/examples/post-transferRoutes-calculate-transferRoutesCalculate-200' - schema: - $ref: '#/components/schemas/TransferRouteResponse' - description: OK - the request has succeeded. - '401': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. - '403': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. - '422': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. - '500': - content: - application/json: - examples: - generic: - $ref: '#/components/examples/generic-500' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Internal Server Error - the server could not process the request. + x-addedInVersion: '1' + x-sortIndex: 1 + x-methodName: calculateTransferRoutes /validateBankAccountIdentification: post: tags: @@ -4225,49 +4366,45 @@ paths: description: Validates bank account identification details. You can use this endpoint to validate bank account details before you [make a transfer](https://docs.adyen.com/api-explorer/transfers/latest/post/transfers) or [create a transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments). - x-addedInVersion: '1' operationId: post-validateBankAccountIdentification - x-sortIndex: 1 - x-methodName: validateBankAccountIdentification - security: - - clientKey: [] - - BasicAuth: [] - - ApiKeyAuth: [] requestBody: content: application/json: + schema: + $ref: '#/components/schemas/BankAccountIdentificationValidationRequest' examples: validateBankAccountIdentificationIban: $ref: '#/components/examples/post-validateBankAccountIdentification-validateBankAccountIdentificationIban' validateBankAccountIdentificationUs: $ref: '#/components/examples/post-validateBankAccountIdentification-validateBankAccountIdentificationUs' - schema: - $ref: '#/components/schemas/BankAccountIdentificationValidationRequest' responses: '200': description: 'No Content - look at the actual response code for the status of the request. ' '401': + description: Unauthorized - authentication required. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-401' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unauthorized - authentication required. '403': + description: Forbidden - insufficient permissions to process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-403' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Forbidden - insufficient permissions to process the request. '422': + description: Unprocessable Entity - a request validation error. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-422' @@ -4275,79 +4412,615 @@ paths: $ref: '#/components/examples/post-validateBankAccountIdentification-validateBankAccountIdentificationIban-422' validateBankAccountIdentificationUs: $ref: '#/components/examples/post-validateBankAccountIdentification-validateBankAccountIdentificationUs-422' - schema: - $ref: '#/components/schemas/RestServiceError' - description: Unprocessable Entity - a request validation error. '500': + description: Internal Server Error - the server could not process the request. content: application/json: + schema: + $ref: '#/components/schemas/RestServiceError' examples: generic: $ref: '#/components/examples/generic-500' + security: + - clientKey: [] + - BasicAuth: [] + - ApiKeyAuth: [] + x-addedInVersion: '1' + x-sortIndex: 1 + x-methodName: validateBankAccountIdentification + /balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings: + get: + tags: + - Balances + summary: Get webhook settings + description: Returns all settings configured for triggering [balance webhooks](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balancePlatform.balanceAccount.balance.updated). + operationId: get-balancePlatforms-balancePlatformId-webhooks-webhookId-settings + parameters: + - name: balancePlatformId + in: path + description: The unique identifier of the balance platform. + required: true + style: simple + explode: false + schema: + type: string + - name: webhookId + in: path + description: The unique identifier of the balance webhook. + required: true + style: simple + explode: false + schema: + type: string + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: schema: - $ref: '#/components/schemas/RestServiceError' + type: array + items: + $ref: '#/components/schemas/WebhookSettingResponse' + examples: + get-webhook-settings-200: + summary: Get all webhook settings + description: Retrieve all settings of a webhook + value: + - id: BWHS00000000000000000000000001 + type: balance + target: + type: balancePlatform + id: YOUR_BALANCE_PLATFORM + currency: USD + status: active + conditions: + - balanceType: available + conditionType: lessThan + value: 500000 + - id: BWHS00000000000000000000000002 + type: balance + target: + type: balanceAccount + id: BA00000000000000000LIABLE + currency: USD + status: active + conditions: + - balanceType: available + conditionType: greaterThan + value: 1000000 + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '404': + description: Not Found - the payment was not found + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '500': description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + x-sortIndex: 4 + post: + tags: + - Balances + summary: Create a balance webhook setting + description: 'Configures the criteria for triggering [balance webhooks](https://docs.adyen.com/api-explorer/balance-webhooks/1/post/balancePlatform.balanceAccount.balance.updated). + + + Adyen sends balance webhooks to notify you of balance changes in your balance + platform. They can be triggered when the balance reaches, exceeds, or drops + below a specific value in a specific currency. + + + You can get notified about balance changes in your entire balance platform, + in the balance accounts of a specific user, or a specific balance account. + The hierarchy between the webhook settings are based on the following business + logic: + + + * Settings on a higher level apply to all lower level resources (balance platform + > account holder > balance acocunt). + + + * The most granular setting overrides higher level settings (balance account + > account holder > balance platform).' + operationId: post-balancePlatforms-balancePlatformId-webhooks-webhookId-settings + parameters: + - name: balancePlatformId + in: path + description: The unique identifier of the balance platform. + required: true + style: simple + explode: false + schema: + type: string + - name: webhookId + in: path + description: The unique identifier of the balance webhook. + required: true + style: simple + explode: false + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BalanceWebhookSettingsRequest' + examples: + create-webhook-setting: + summary: Create a webhook setting + description: Create a webhook setting + value: + type: balance + target: + type: balanceAccount + id: BA00000000000000000LIABLE + currency: USD + status: active + conditions: + - balanceType: available + conditionType: lessThan + value: 500000 + required: true + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/WebhookSettingResponse' + examples: + create-webhook-setting: + summary: Successfully created a webhook setting + description: Successfully created a webhook setting + value: + id: BWHS00000000000000000000000001 + type: balance + target: + type: balanceAccount + id: BA00000000000000000LIABLE + currency: USD + status: active + conditions: + - balanceType: available + conditionType: lessThan + value: 500000 + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '404': + description: Not Found - the payment was not found + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + x-sortIndex: 1 + /balancePlatforms/{balancePlatformId}/webhooks/{webhookId}/settings/{settingId}: + get: + tags: + - Balances + summary: Get a webhook setting + description: Returns the details of a specific balance webhook setting configured + for triggering [balance webhooks](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balancePlatform.balanceAccount.balance.updated). + operationId: get-balancePlatforms-balancePlatformId-webhooks-webhookId-settings-settingId + parameters: + - name: balancePlatformId + in: path + description: The unique identifier of the balance platform. + required: true + style: simple + explode: false + schema: + type: string + - name: webhookId + in: path + description: The unique identifier of the balance webhook. + required: true + style: simple + explode: false + schema: + type: string + - name: settingId + in: path + description: The unique identifier of the balance webhook setting. + required: true + style: simple + explode: false + schema: + type: string + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/WebhookSettingResponse' + examples: + get-webhook-setting-by-id-200: + summary: Get a webhook setting + description: Retrieve the details of a webhook setting + value: + id: BWHS00000000000000000000000001 + type: balance + target: + type: balancePlatform + id: YOUR_BALANCE_PLATFORM + currency: USD + status: active + conditions: + - balanceType: available + conditionType: lessThan + value: 500000 + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '404': + description: Not Found - the payment was not found + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + x-sortIndex: 3 + delete: + tags: + - Balances + summary: Delete a webhook setting + description: Deletes a setting that contains the conditions for triggering [balance + webhooks](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balancePlatform.balanceAccount.balance.updated). + operationId: delete-balancePlatforms-balancePlatformId-webhooks-webhookId-settings-settingId + parameters: + - name: balancePlatformId + in: path + description: The unique identifier of the balance platform. + required: true + style: simple + explode: false + schema: + type: string + - name: webhookId + in: path + description: The unique identifier of the balance webhook. + required: true + style: simple + explode: false + schema: + type: string + - name: settingId + in: path + description: The unique identifier of the balance webhook setting. + required: true + style: simple + explode: false + schema: + type: string + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: {} + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '404': + description: Not Found - the payment was not found + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + x-sortIndex: 5 + patch: + tags: + - Balances + summary: Update a webhook setting + description: Updates the conditions the balance change needs to meet for Adyen + to send a [balance webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balancePlatform.balanceAccount.balance.updated). + operationId: patch-balancePlatforms-balancePlatformId-webhooks-webhookId-settings-settingId + parameters: + - name: balancePlatformId + in: path + description: The unique identifier of the balance platform. + required: true + style: simple + explode: false + schema: + type: string + - name: webhookId + in: path + description: The unique identifier of the balance webhook. + required: true + style: simple + explode: false + schema: + type: string + - name: settingId + in: path + description: The unique identifier of the balance webhook setting. + required: true + style: simple + explode: false + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchableBalanceWebhookSettingsRequest' + examples: + update-webhook-setting: + summary: Update a webhook setting + description: Update a webhook setting + value: + type: balance + target: + type: balanceAccount + id: BA00000000000000000LIABLE + currency: USD + status: active + conditions: + - balanceType: available + conditionType: lessThan + value: 500000 + - balanceType: balance + conditionType: greaterThan + value: 1000000 + deactivate-webhook-setting: + summary: Deactivate a webhook setting + description: Deactivate a webhook setting + value: + type: balance + status: inactive + required: true + responses: + '200': + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: '#/components/schemas/WebhookSettingResponse' + examples: + update-webhook-setting: + summary: Successfully updated a webhook setting + description: Successfully updated a webhook setting + value: + type: balance + id: BWHS00000000000000000000000001 + target: + type: balanceAccount + id: BA00000000000000000LIABLE + currency: USD + status: active + conditions: + - balanceType: available + conditionType: lessThan + value: 500000 + - balanceType: balance + conditionType: greaterThan + value: 1000000 + deactivate-webhook-setting: + summary: Successfully deactivated a webhook setting + description: Successfully deactivated a webhook setting + value: + type: balance + id: BWHS00000000000000000000000001 + target: + type: balanceAccount + id: BA00000000000000000LIABLE + currency: USD + status: inactive + conditions: + - balanceType: available + conditionType: lessThan + value: 500000 + - balanceType: balance + conditionType: greaterThan + value: 1000000 + '400': + description: Bad Request - a problem reading or understanding the request. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '401': + description: Unauthorized - authentication required. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '403': + description: Forbidden - insufficient permissions to process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '404': + description: Not Found - the payment was not found + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '422': + description: Unprocessable Entity - a request validation error. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + '500': + description: Internal Server Error - the server could not process the request. + content: + application/json: + schema: + $ref: '#/components/schemas/DefaultErrorResponseEntity' + x-sortIndex: 2 components: schemas: AULocalAccountIdentification: + type: object additionalProperties: false properties: accountNumber: + type: string description: The bank account number, without separators or whitespace. maxLength: 9 minLength: 5 - type: string bsbCode: + type: string description: The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or whitespace. maxLength: 6 minLength: 6 - type: string type: + type: string default: auLocal description: '**auLocal**' enum: - auLocal - type: string required: - - type - accountNumber - bsbCode - type: object + - type AccountHolder: + type: object additionalProperties: false properties: balancePlatform: + type: string description: The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. - type: string capabilities: + type: object additionalProperties: $ref: '#/components/schemas/AccountHolderCapability' description: Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. - type: object contactDetails: + $ref: '#/components/schemas/ContactDetails' deprecated: true description: Contact details of the account holder. - $ref: '#/components/schemas/ContactDetails' description: + type: string description: Your description for the account holder. maxLength: 300 - type: string id: + type: string description: The unique identifier of the account holder. readOnly: true - type: string legalEntityId: + type: string description: The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. - type: string metadata: + type: object additionalProperties: type: string description: 'A set of key and value pairs for general use. @@ -4357,23 +5030,23 @@ components: > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.' - type: object migratedAccountHolderCode: + type: string description: The unique identifier of the migrated account holder in the classic integration. readOnly: true - type: string primaryBalanceAccount: + type: string description: The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. - type: string reference: + type: string description: Your reference for the account holder. maxLength: 150 - type: string status: + type: string description: "The status of the account holder.\n\nPossible values: \n\n\ \ * **active**: The account holder is active and allowed to use its capabilities.\ \ This is the initial status for account holders and balance accounts.\ @@ -4386,34 +5059,34 @@ components: - active - closed - suspended - type: string timeZone: + type: string description: 'The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).' - type: string verificationDeadlines: + type: array description: List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. items: $ref: '#/components/schemas/VerificationDeadline' readOnly: true - type: array required: - - legalEntityId - id - type: object + - legalEntityId AccountHolderCapability: + type: object additionalProperties: false properties: allowed: + type: boolean description: Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. readOnly: true - type: boolean allowedLevel: + type: string description: 'The capability level that is allowed for the account holder. @@ -4424,29 +5097,29 @@ components: - medium - notApplicable readOnly: true - type: string allowedSettings: + $ref: '#/components/schemas/CapabilitySettings' description: A JSON object containing the settings that are allowed for the account holder. readOnly: true - $ref: '#/components/schemas/CapabilitySettings' enabled: + type: boolean description: Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. - type: boolean problems: + type: array description: Contains verification errors and the actions that you can take to resolve them. items: $ref: '#/components/schemas/CapabilityProblem' readOnly: true - type: array requested: + type: boolean description: Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. - type: boolean requestedLevel: + type: string description: 'The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require @@ -4459,20 +5132,20 @@ components: - low - medium - notApplicable - type: string requestedSettings: + $ref: '#/components/schemas/CapabilitySettings' description: A JSON object containing the settings that were requested for the account holder. readOnly: true - $ref: '#/components/schemas/CapabilitySettings' transferInstruments: + type: array description: 'Contains the status of the transfer instruments associated with this capability. ' items: $ref: '#/components/schemas/AccountSupportingEntityCapability' readOnly: true - type: array verificationStatus: + type: string description: 'The status of the verification checks for the capability. @@ -4499,38 +5172,38 @@ components: - rejected - valid readOnly: true - type: string - type: object AccountHolderInfo: + type: object additionalProperties: false properties: balancePlatform: + type: string description: The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. - type: string capabilities: + type: object additionalProperties: $ref: '#/components/schemas/AccountHolderCapability' description: Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. - type: object contactDetails: + $ref: '#/components/schemas/ContactDetails' deprecated: true description: Contact details of the account holder. - $ref: '#/components/schemas/ContactDetails' description: + type: string description: Your description for the account holder. maxLength: 300 - type: string legalEntityId: + type: string description: The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/legalentity/latest/post/legalEntities#responses-200-id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. - type: string metadata: + type: object additionalProperties: type: string description: 'A set of key and value pairs for general use. @@ -4540,50 +5213,50 @@ components: > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.' - type: object migratedAccountHolderCode: + type: string description: The unique identifier of the migrated account holder in the classic integration. readOnly: true - type: string reference: + type: string description: Your reference for the account holder. maxLength: 150 - type: string timeZone: + type: string description: 'The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).' - type: string required: - legalEntityId - type: object AccountHolderUpdateRequest: + type: object additionalProperties: false properties: balancePlatform: + type: string description: The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. - type: string capabilities: + type: object additionalProperties: $ref: '#/components/schemas/AccountHolderCapability' description: Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. - type: object contactDetails: + $ref: '#/components/schemas/ContactDetails' deprecated: true description: Contact details of the account holder. - $ref: '#/components/schemas/ContactDetails' description: + type: string description: Your description for the account holder. maxLength: 300 - type: string metadata: + type: object additionalProperties: type: string description: 'A set of key and value pairs for general use. @@ -4593,23 +5266,23 @@ components: > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.' - type: object migratedAccountHolderCode: + type: string description: The unique identifier of the migrated account holder in the classic integration. readOnly: true - type: string primaryBalanceAccount: + type: string description: The ID of the account holder's primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. - type: string reference: + type: string description: Your reference for the account holder. maxLength: 150 - type: string status: + type: string description: "The status of the account holder.\n\nPossible values: \n\n\ \ * **active**: The account holder is active and allowed to use its capabilities.\ \ This is the initial status for account holders and balance accounts.\ @@ -4622,31 +5295,31 @@ components: - active - closed - suspended - type: string timeZone: + type: string description: 'The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).' - type: string verificationDeadlines: + type: array description: List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. items: $ref: '#/components/schemas/VerificationDeadline' readOnly: true - type: array - type: object AccountSupportingEntityCapability: + type: object additionalProperties: false properties: allowed: + type: boolean description: Indicates whether the supporting entity capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. readOnly: true - type: boolean allowedLevel: + type: string description: 'The capability level that is allowed for the account holder. @@ -4657,21 +5330,21 @@ components: - medium - notApplicable readOnly: true - type: string enabled: + type: boolean description: Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. - type: boolean id: + type: string description: The ID of the supporting entity. readOnly: true - type: string requested: + type: boolean description: Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. - type: boolean requestedLevel: + type: string description: 'The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require @@ -4684,8 +5357,8 @@ components: - low - medium - notApplicable - type: string verificationStatus: + type: string description: 'The status of the verification checks for the supporting entity capability. @@ -4713,28 +5386,28 @@ components: - rejected - valid readOnly: true - type: string - type: object ActiveNetworkTokensRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: - description: The number of tokens. - format: int32 type: integer + format: int32 + description: The number of tokens. required: - operation - type: object AdditionalBankIdentification: + type: object additionalProperties: false properties: code: - description: The value of the additional bank identification. type: string + description: The value of the additional bank identification. type: + type: string description: "The type of additional bank identification, depending on the\ \ country.\n\nPossible values:\n\n * **gbSortCode**: The 6-digit [UK sort\ \ code](https://en.wikipedia.org/wiki/Sort_code), without separators or\ @@ -4743,148 +5416,148 @@ components: enum: - gbSortCode - usRoutingNumber - type: string - type: object Address: + type: object additionalProperties: false properties: city: + type: string description: 'The name of the city. Maximum length: 3000 characters.' maxLength: 3000 - type: string country: + type: string description: 'The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don''t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`.' - type: string houseNumberOrName: + type: string description: 'The number or name of the house. Maximum length: 3000 characters.' maxLength: 3000 - type: string postalCode: + type: string description: A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. - type: string stateOrProvince: + type: string description: 'The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.' - type: string street: + type: string description: 'The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`.' maxLength: 3000 - type: string required: - - street - - houseNumberOrName - city - - postalCode - country - type: object + - houseNumberOrName + - postalCode + - street AddressRequirement: + type: object additionalProperties: false properties: description: + type: string description: Specifies the required address related fields for a particular route. - type: string requiredAddressFields: + type: array description: List of address fields. items: + type: string enum: - city - country - line1 - postalCode - stateOrProvince - type: string - type: array type: + type: string default: addressRequirement description: '**addressRequirement**' enum: - addressRequirement - type: string required: - type - type: object Amount: + type: object additionalProperties: false properties: currency: + type: string description: The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes). maxLength: 3 minLength: 3 - type: string value: - description: The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). - format: int64 type: integer + format: int64 + description: The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units). required: - - value - currency - type: object + - value AmountMinMaxRequirement: + type: object additionalProperties: false properties: description: - description: Specifies the eligible amounts for a particular route. type: string + description: Specifies the eligible amounts for a particular route. max: + type: integer + format: int64 description: Maximum amount. - format: int64 - type: integer min: - description: Minimum amount. - format: int64 type: integer + format: int64 + description: Minimum amount. type: + type: string default: amountMinMaxRequirement description: '**amountMinMaxRequirement**' enum: - amountMinMaxRequirement - type: string required: - type - type: object AmountNonZeroDecimalsRequirement: + type: object additionalProperties: false properties: description: + type: string description: Specifies for which routes the amount in a transfer request must have no non-zero decimal places, so the transfer can only be processed if the amount consists of round numbers. - type: string type: + type: string default: amountNonZeroDecimalsRequirement description: '**amountNonZeroDecimalsRequirement**' enum: - amountNonZeroDecimalsRequirement - type: string required: - type - type: object AssociationDelegatedAuthenticationData: + type: object additionalProperties: false properties: sdkOutput: + type: string description: A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. maxLength: 20000 - type: string required: - sdkOutput - type: object AssociationFinaliseRequest: + type: object additionalProperties: false properties: ids: + type: array description: 'The list of unique identifiers of the resources that you are associating with the SCA device. @@ -4893,12 +5566,12 @@ components: items: type: string maxLength: 5 - type: array strongCustomerAuthentication: + $ref: '#/components/schemas/AssociationDelegatedAuthenticationData' description: Contains authentication information required to associate the resource with the SCA device. - $ref: '#/components/schemas/AssociationDelegatedAuthenticationData' type: + type: string description: 'The type of resource that you are associating with the SCA device. @@ -4906,37 +5579,37 @@ components: Possible value: **PaymentInstrument**' enum: - PaymentInstrument - type: string required: - - type - ids - strongCustomerAuthentication - type: object + - type AssociationFinaliseResponse: + type: object additionalProperties: false properties: deviceId: + type: string description: The unique identifier of the SCA device you associated with a resource. - type: string ids: + type: array description: The list of unique identifiers of the resources that you associated with the SCA device. items: type: string - type: array type: + type: string description: The type of resource that you associated with the SCA device. enum: - PAYMENT_INSTRUMENT - type: string required: - type - type: object AssociationInitiateRequest: + type: object additionalProperties: false properties: ids: + type: array description: 'The list of unique identifiers of the resources that you are associating with the SCA device. @@ -4945,8 +5618,8 @@ components: items: type: string maxLength: 5 - type: array type: + type: string description: 'The type of resource that you are associating with the SCA device. @@ -4954,27 +5627,27 @@ components: Possible value: **PaymentInstrument**' enum: - PaymentInstrument - type: string required: - - type - ids - type: object + - type AssociationInitiateResponse: + type: object additionalProperties: false properties: sdkInput: + type: string description: A string that you must pass to the authentication SDK to continue with the association process. maxLength: 20000 - type: string - type: object Authentication: + type: object additionalProperties: false properties: email: - description: The email address where the one-time password (OTP) is sent. type: string + description: The email address where the one-time password (OTP) is sent. password: + type: string description: "The password used for 3D Secure password-based authentication.\ \ The value must be between 1 to 30 characters and must only contain the\ \ following supported characters.\n\n* Characters between **a-z**, **A-Z**,\ @@ -4982,8 +5655,8 @@ components: +-*/\xE7%()=?!~#'\",;:$&\xE0\xF9\xF2\xE2\xF4\xFB\xE1\xFA\xF3**" maxLength: 30 minLength: 1 - type: string phone: + $ref: '#/components/schemas/Phone' description: 'The phone number where the one-time password (OTP) is sent. @@ -5000,102 +5673,102 @@ components: >Make sure to verify that the card user owns the phone number.' - $ref: '#/components/schemas/Phone' - type: object BRLocalAccountIdentification: + type: object additionalProperties: false properties: accountNumber: + type: string description: The bank account number, without separators or whitespace. maxLength: 10 minLength: 1 - type: string bankCode: + type: string description: The 3-digit bank code, with leading zeros. maxLength: 3 minLength: 3 - type: string branchNumber: + type: string description: The bank account branch number, without separators or whitespace. maxLength: 4 minLength: 1 - type: string ispb: + type: string description: The 8-digit ISPB, with leading zeros. maxLength: 8 minLength: 8 - type: string type: + type: string default: brLocal description: '**brLocal**' enum: - brLocal - type: string required: - - type - - branchNumber - accountNumber - bankCode - type: object + - branchNumber + - type Balance: + type: object additionalProperties: false properties: available: + type: integer + format: int64 description: The balance available for use. - format: int64 - type: integer balance: - description: The sum of the transactions that have already been settled. - format: int64 type: integer + format: int64 + description: The sum of the transactions that have already been settled. currency: + type: string description: The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. - type: string pending: + type: integer + format: int64 description: The sum of the transactions that will be settled in the future. - format: int64 - type: integer reserved: - description: The balance currently held in reserve. - format: int64 type: integer + format: int64 + description: The balance currently held in reserve. required: - - currency - - balance - - reserved - available - type: object + - balance + - currency + - reserved BalanceAccount: + type: object additionalProperties: false properties: accountHolderId: + type: string description: The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. - type: string balances: + type: array description: List of balances with the amount and currency. items: $ref: '#/components/schemas/Balance' - type: array defaultCurrencyCode: + type: string description: 'The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. > After a balance account is created, you cannot change its default currency.' - type: string description: + type: string description: A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. maxLength: 300 - type: string id: - description: The unique identifier of the balance account. type: string + description: The unique identifier of the balance account. metadata: + type: object additionalProperties: type: string description: 'A set of key and value pairs for general use. @@ -5105,21 +5778,21 @@ components: > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.' - type: object migratedAccountCode: + type: string description: The unique identifier of the account of the migrated account holder in the classic integration. readOnly: true - type: string platformPaymentConfiguration: + $ref: '#/components/schemas/PlatformPaymentConfiguration' description: Contains key-value pairs to the configure the settlement model in a balance account. - $ref: '#/components/schemas/PlatformPaymentConfiguration' reference: + type: string description: Your reference for the balance account, maximum 150 characters. maxLength: 150 - type: string status: + type: string description: "The status of the balance account, set to **active** by default.\ \ \n" enum: @@ -5127,42 +5800,42 @@ components: - closed - inactive - suspended - type: string timeZone: + type: string description: 'The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).' - type: string required: - accountHolderId - id - type: object BalanceAccountBase: + type: object additionalProperties: false properties: accountHolderId: + type: string description: The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. - type: string defaultCurrencyCode: + type: string description: 'The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. > After a balance account is created, you cannot change its default currency.' - type: string description: + type: string description: A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. maxLength: 300 - type: string id: - description: The unique identifier of the balance account. type: string + description: The unique identifier of the balance account. metadata: + type: object additionalProperties: type: string description: 'A set of key and value pairs for general use. @@ -5172,21 +5845,21 @@ components: > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.' - type: object migratedAccountCode: + type: string description: The unique identifier of the account of the migrated account holder in the classic integration. readOnly: true - type: string platformPaymentConfiguration: + $ref: '#/components/schemas/PlatformPaymentConfiguration' description: Contains key-value pairs to the configure the settlement model in a balance account. - $ref: '#/components/schemas/PlatformPaymentConfiguration' reference: + type: string description: Your reference for the balance account, maximum 150 characters. maxLength: 150 - type: string status: + type: string description: "The status of the balance account, set to **active** by default.\ \ \n" enum: @@ -5194,39 +5867,39 @@ components: - closed - inactive - suspended - type: string timeZone: + type: string description: 'The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).' - type: string required: - accountHolderId - id - type: object BalanceAccountInfo: + type: object additionalProperties: false properties: accountHolderId: + type: string description: The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. - type: string defaultCurrencyCode: + type: string description: 'The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. > After a balance account is created, you cannot change its default currency.' - type: string description: + type: string description: A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. maxLength: 300 - type: string metadata: + type: object additionalProperties: type: string description: 'A set of key and value pairs for general use. @@ -5236,43 +5909,43 @@ components: > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.' - type: object migratedAccountCode: + type: string description: The unique identifier of the account of the migrated account holder in the classic integration. readOnly: true - type: string platformPaymentConfiguration: + $ref: '#/components/schemas/PlatformPaymentConfiguration' description: Contains key-value pairs to the configure the settlement model in a balance account. - $ref: '#/components/schemas/PlatformPaymentConfiguration' reference: + type: string description: Your reference for the balance account, maximum 150 characters. maxLength: 150 - type: string timeZone: + type: string description: 'The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).' - type: string required: - accountHolderId - type: object BalanceAccountUpdateRequest: + type: object additionalProperties: false properties: accountHolderId: + type: string description: The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. - type: string description: + type: string description: A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder. maxLength: 300 - type: string metadata: + type: object additionalProperties: type: string description: 'A set of key and value pairs for general use. @@ -5282,16 +5955,16 @@ components: > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.' - type: object platformPaymentConfiguration: + $ref: '#/components/schemas/PlatformPaymentConfiguration' description: Contains key-value pairs to the configure the settlement model in a balance account. - $ref: '#/components/schemas/PlatformPaymentConfiguration' reference: + type: string description: Your reference to the balance account. maxLength: 150 - type: string status: + type: string description: 'The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. @@ -5303,53 +5976,52 @@ components: - closed - inactive - suspended - type: string timeZone: + type: string description: 'The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).' - type: string - type: object BalancePlatform: + type: object additionalProperties: false properties: description: + type: string description: Your description of the balance platform. maxLength: 300 - type: string id: - description: The unique identifier of the balance platform. type: string + description: The unique identifier of the balance platform. status: + type: string description: 'The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**.' - type: string required: - id - type: object BalanceSweepConfigurationsResponse: + type: object additionalProperties: false properties: hasNext: + type: boolean description: Indicates whether there are more items on the next page. - type: boolean hasPrevious: - description: Indicates whether there are more items on the previous page. type: boolean + description: Indicates whether there are more items on the previous page. sweeps: + type: array description: List of sweeps associated with the balance account. items: $ref: '#/components/schemas/SweepConfigurationV2' - type: array required: - - sweeps - - hasPrevious - hasNext - type: object + - hasPrevious + - sweeps BankAccount: + type: object additionalProperties: false properties: accountIdentification: @@ -5375,24 +6047,25 @@ components: - $ref: '#/components/schemas/USLocalAccountIdentification' required: - accountIdentification - type: object BankAccountDetails: + type: object additionalProperties: false properties: accountNumber: - description: The bank account number, without separators or whitespace. type: string + description: The bank account number, without separators or whitespace. accountType: + type: string default: checking description: 'The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**.' - type: string branchNumber: - description: The bank account branch number, without separators or whitespace type: string + description: The bank account branch number, without separators or whitespace formFactor: + type: string default: physical description: "Business accounts with a `formFactor` value of **physical**\ \ are business accounts issued under the central bank of that country.\ @@ -5401,32 +6074,33 @@ components: \ value is set to **virtual**. The local IBANs that are supported are\ \ for DE and FR, which reference a physical NL account, with funds being\ \ routed through the central bank of NL." - type: string iban: + type: string description: The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. - type: string routingNumber: + type: string description: The [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. - type: string sortCode: + type: string description: The [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. - type: string type: + type: string default: iban description: '**iban** or **usLocal** or **ukLocal**' - type: string required: - type - type: object BankAccountIdentificationTypeRequirement: + type: object additionalProperties: false properties: bankAccountIdentificationTypes: + type: array description: 'List of bank account identification types: eg.; [iban , numberAndBic]' items: + type: string enum: - auLocal - brLocal @@ -5445,23 +6119,21 @@ components: - sgLocal - ukLocal - usLocal - type: string - type: array description: + type: string description: Specifies the bank account details for a particular route per required field in this object depending on the country of the bank account and the currency of the transfer. - type: string type: + type: string default: bankAccountIdentificationTypeRequirement description: '**bankAccountIdentificationTypeRequirement**' enum: - bankAccountIdentificationTypeRequirement - type: string required: - type - type: object BankAccountIdentificationValidationRequest: + type: object additionalProperties: false properties: accountIdentification: @@ -5485,11 +6157,12 @@ components: - $ref: '#/components/schemas/USLocalAccountIdentification' required: - accountIdentification - type: object BankAccountModel: + type: object additionalProperties: false properties: formFactor: + type: string default: physical description: "Business accounts with a `formFactor` value of **physical**\ \ are business accounts issued under the central bank of that country.\ @@ -5503,36 +6176,37 @@ components: - unknown - virtual nullable: true - type: string - type: object BankIdentification: + type: object additionalProperties: false properties: country: + type: string description: Two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. - type: string identification: - description: The bank identification code. type: string + description: The bank identification code. identificationType: + type: string description: 'The type of the identification. - Possible values: **iban**, **routingNumber**, **sortCode**.' + Possible values: **iban**, **routingNumber**, **sortCode**, **bic**.' enum: + - bic - iban - routingNumber - sortCode - type: string - type: object BrandVariantsRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: + type: array description: "List of card brand variants.\n\nPossible values: \n\n- **mc**,\ \ **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**,\ \ **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro**\n\n - **visa**,\ @@ -5543,33 +6217,33 @@ components: \n" items: type: string - type: array required: - operation - type: object BulkAddress: + type: object additionalProperties: false properties: city: + type: string description: The name of the city. - type: string company: - description: The name of the company. type: string + description: The name of the company. country: + type: string description: The two-character ISO-3166-1 alpha-2 country code. For example, **US**. - type: string email: + type: string description: The email address. - type: string houseNumberOrName: + type: string description: The house number or name. - type: string mobile: - description: The full telephone number. type: string + description: The full telephone number. postalCode: + type: string description: 'The postal code. @@ -5580,29 +6254,29 @@ components: * 10 characters for all other countries.' - type: string stateOrProvince: + type: string description: 'The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US.' - type: string street: - description: The streetname of the house. type: string + description: The streetname of the house. required: - country - type: object CALocalAccountIdentification: + type: object additionalProperties: false properties: accountNumber: + type: string description: The 5- to 12-digit bank account number, without separators or whitespace. maxLength: 12 minLength: 5 - type: string accountType: + type: string default: checking description: 'The bank account type. @@ -5611,33 +6285,33 @@ components: enum: - checking - savings - type: string institutionNumber: + type: string description: The 3-digit institution number, without separators or whitespace. maxLength: 3 minLength: 3 - type: string transitNumber: + type: string description: The 5-digit transit number, without separators or whitespace. maxLength: 5 minLength: 5 - type: string type: + type: string default: caLocal description: '**caLocal**' enum: - caLocal - type: string required: - - type - accountNumber - institutionNumber - transitNumber - type: object + - type CZLocalAccountIdentification: + type: object additionalProperties: false properties: accountNumber: + type: string description: "The 2- to 16-digit bank account number (\u010C\xEDslo \xFA\ \u010Dtu) in the following format:\n\n- The optional prefix (p\u0159ed\u010D\ \xEDsl\xED).\n\n- The required second part (z\xE1kladn\xED \u010D\xE1\ @@ -5647,206 +6321,205 @@ components: \ normalized)" maxLength: 17 minLength: 2 - type: string bankCode: + type: string description: "The 4-digit bank code (K\xF3d banky), without separators or\ \ whitespace." maxLength: 4 minLength: 4 - type: string type: + type: string default: czLocal description: '**czLocal**' enum: - czLocal - type: string required: - - type - accountNumber - bankCode - type: object + - type CapabilityProblem: + type: object additionalProperties: false properties: entity: - description: Contains the type of the entity and the corresponding ID. $ref: '#/components/schemas/CapabilityProblemEntity' + description: Contains the type of the entity and the corresponding ID. verificationErrors: + type: array description: Contains information about the verification error. items: $ref: '#/components/schemas/VerificationError' - type: array - type: object CapabilityProblemEntity: + type: object additionalProperties: false properties: documents: + type: array description: List of document IDs to which the verification errors related to the capabilities correspond to. items: type: string - type: array id: - description: The ID of the entity. type: string + description: The ID of the entity. owner: + $ref: '#/components/schemas/CapabilityProblemEntity-recursive' description: Contains details about the owner of the entity that has an error. - $ref: '#/components/schemas/CapabilityProblemEntity-recursive' type: + type: string description: "Type of entity. \n\nPossible values: **LegalEntity**, **BankAccount**,\ \ **Document**." enum: - BankAccount - Document - LegalEntity - type: string - type: object CapabilityProblemEntity-recursive: + type: object additionalProperties: false properties: documents: + type: array description: List of document IDs to which the verification errors related to the capabilities correspond to. items: type: string - type: array id: - description: The ID of the entity. type: string + description: The ID of the entity. type: + type: string description: "Type of entity. \n\nPossible values: **LegalEntity**, **BankAccount**,\ \ **Document**." enum: - BankAccount - Document - LegalEntity - type: string - required: [] - type: object CapabilitySettings: + type: object additionalProperties: false properties: amountPerIndustry: + type: object additionalProperties: $ref: '#/components/schemas/Amount' description: '' - type: object authorizedCardUsers: - description: '' type: boolean + description: '' fundingSource: + type: array description: '' items: + type: string enum: - credit - debit - prepaid - type: string - type: array interval: + type: string description: '' enum: - daily - monthly - weekly - type: string maxAmount: - description: '' $ref: '#/components/schemas/Amount' - type: object + description: '' CapitalBalance: + type: object additionalProperties: false properties: currency: - description: The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). type: string + description: The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). fee: + type: integer + format: int64 description: Fee amount. - format: int64 - type: integer principal: + type: integer + format: int64 description: Principal amount. - format: int64 - type: integer total: - description: Total amount. A sum of principal amount and fee amount. - format: int64 type: integer + format: int64 + description: Total amount. A sum of principal amount and fee amount. required: - - principal - - fee - - total - currency - type: object + - fee + - principal + - total CapitalGrantAccount: + type: object additionalProperties: false properties: balances: + type: array description: The balances of the grant account. items: $ref: '#/components/schemas/CapitalBalance' - type: array fundingBalanceAccountId: + type: string description: The unique identifier of the balance account used to fund the grant. - type: string id: - description: The identifier of the grant account. type: string + description: The identifier of the grant account. limits: + type: array description: The limits of the grant account. items: $ref: '#/components/schemas/GrantLimit' - type: array - type: object Card: + type: object additionalProperties: false properties: authentication: + $ref: '#/components/schemas/Authentication' description: Contains the card user's password and mobile phone number. This is required when you issue cards that can be used to make online payments within the EEA and the UK, or can be added to digital wallets. Refer to [3D Secure and digital wallets](https://docs.adyen.com/issuing/3d-secure-and-wallets) for more information. - $ref: '#/components/schemas/Authentication' bin: - description: The bank identification number (BIN) of the card number. type: string + description: The bank identification number (BIN) of the card number. brand: + type: string description: 'The brand of the physical or the virtual card. Possible values: **visa**, **mc**.' - type: string brandVariant: + type: string description: 'The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration.' - type: string cardholderName: + type: string description: "The name of the cardholder.\n Maximum length: 26 characters." maxLength: 26 - type: string configuration: + $ref: '#/components/schemas/CardConfiguration' description: "Settings required when creating a physical or a virtual card.\ \ \n\nReach out to your Adyen contact to get the values that you can send\ \ in this object." - $ref: '#/components/schemas/CardConfiguration' cvc: + type: string description: 'The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards.' - type: string deliveryContact: - x-addedInVersion: '2' - description: The delivery contact (name and address) for physical card delivery. $ref: '#/components/schemas/DeliveryContact' + description: The delivery contact (name and address) for physical card delivery. + x-addedInVersion: '2' expiration: - description: The expiration date of the card. $ref: '#/components/schemas/Expiry' + description: The expiration date of the card. formFactor: + type: string description: 'The form factor of the card. Possible values: **virtual**, **physical**.' @@ -5854,62 +6527,62 @@ components: - physical - unknown - virtual - type: string lastFour: - description: Last last four digits of the card number. type: string + description: Last last four digits of the card number. number: + type: string description: 'The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards.' readOnly: true - type: string threeDSecure: + type: string description: 'Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. >Reach out to your Adyen contact to get the values relevant for your integration.' - type: string required: - - formFactor - - cardholderName - brand - brandVariant + - cardholderName + - formFactor - number - type: object CardConfiguration: + type: object additionalProperties: false properties: activation: + type: string description: Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. - type: string activationUrl: + type: string description: "Your app's URL, if you want to activate cards through your\ \ app. For example, **my-app://ref1236a7d**. A QR code is created based\ \ on this URL, and is included in the carrier. Before you use this field,\ \ reach out to your Adyen contact to set up the QR code process. \n\n\ Maximum length: 255 characters." maxLength: 255 - type: string bulkAddress: - description: Overrides the shipment bulk address defined in the `configurationProfileId`. $ref: '#/components/schemas/BulkAddress' + description: Overrides the shipment bulk address defined in the `configurationProfileId`. cardImageId: + type: string description: The ID of the card image. This is the image that will be printed on the full front of the card. - type: string carrier: + type: string description: Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. - type: string carrierImageId: + type: string description: The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. - type: string configurationProfileId: + type: string description: 'The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the @@ -5919,72 +6592,72 @@ components: For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile.' - type: string currency: + type: string description: The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. - type: string envelope: - description: 'Overrides the envelope design ID defined in the `configurationProfileId`. ' type: string + description: 'Overrides the envelope design ID defined in the `configurationProfileId`. ' insert: + type: string description: Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. - type: string language: + type: string description: The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. - type: string logoImageId: + type: string description: The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. - type: string pinMailer: + type: string description: Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. - type: string shipmentMethod: - description: Overrides the logistics company defined in the `configurationProfileId`. type: string + description: Overrides the logistics company defined in the `configurationProfileId`. required: - configurationProfileId - type: object CardInfo: + type: object additionalProperties: false properties: authentication: + $ref: '#/components/schemas/Authentication' description: Contains the card user's password and mobile phone number. This is required when you issue cards that can be used to make online payments within the EEA and the UK, or can be added to digital wallets. Refer to [3D Secure and digital wallets](https://docs.adyen.com/issuing/3d-secure-and-wallets) for more information. - $ref: '#/components/schemas/Authentication' brand: + type: string description: 'The brand of the physical or the virtual card. Possible values: **visa**, **mc**.' - type: string brandVariant: + type: string description: 'The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration.' - type: string cardholderName: + type: string description: "The name of the cardholder.\n Maximum length: 26 characters." maxLength: 26 - type: string configuration: + $ref: '#/components/schemas/CardConfiguration' description: "Settings required when creating a physical or a virtual card.\ \ \n\nReach out to your Adyen contact to get the values that you can send\ \ in this object." - $ref: '#/components/schemas/CardConfiguration' deliveryContact: - x-addedInVersion: '2' - description: The delivery contact (name and address) for physical card delivery. $ref: '#/components/schemas/DeliveryContact' + description: The delivery contact (name and address) for physical card delivery. + x-addedInVersion: '2' formFactor: + type: string description: 'The form factor of the card. Possible values: **virtual**, **physical**.' @@ -5992,53 +6665,53 @@ components: - physical - unknown - virtual - type: string threeDSecure: + type: string description: 'Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. >Reach out to your Adyen contact to get the values relevant for your integration.' - type: string required: - - formFactor - - cardholderName - brand - brandVariant - type: object + - cardholderName + - formFactor CardOrder: + type: object additionalProperties: false properties: beginDate: + type: string + format: date-time description: The date when the card order is created. - format: date-time - type: string cardManufacturingProfileId: + type: string description: The unique identifier of the card manufacturer profile. - type: string closedDate: - description: The date when the card order processing ends. - format: date-time type: string + format: date-time + description: The date when the card order processing ends. endDate: + type: string + format: date-time description: 'The date when you manually closed the card order. Card orders are automatically closed by the end of the day it was created. If you manually closed it beforehand, the closing date is shown as the `endDate`.' - format: date-time - type: string id: + type: string description: The unique identifier of the card order. - type: string lockDate: - description: The date when the card order processing begins. + type: string format: date-time - type: string + description: The date when the card order processing begins. serviceCenter: - description: The service center. type: string + description: The service center. status: + type: string description: 'The status of the card order. @@ -6046,51 +6719,51 @@ components: enum: - closed - open - type: string - type: object CardOrderItem: + type: object additionalProperties: false properties: balancePlatform: - description: The unique identifier of the balance platform. type: string + description: The unique identifier of the balance platform. card: + $ref: '#/components/schemas/CardOrderItemDeliveryStatus' description: 'The status of the card delivery. Possible values: **created**, **rejected**, **processing**, **produced**, **shipped**, **delivered**, **notApplicable**, **unknown**. ' - $ref: '#/components/schemas/CardOrderItemDeliveryStatus' cardOrderItemId: - description: The unique identifier of the card order item. type: string + description: The unique identifier of the card order item. creationDate: + type: string + format: date-time description: The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. - format: date-time - type: string id: + type: string description: The ID of the resource. readOnly: true - type: string paymentInstrumentId: + type: string description: The unique identifier of the payment instrument related to the card order item. - type: string pin: - description: Contains information about the status of the PIN delivery. $ref: '#/components/schemas/CardOrderItemDeliveryStatus' + description: Contains information about the status of the PIN delivery. shippingMethod: - description: The shipping method used to deliver the card or the PIN. type: string - type: object + description: The shipping method used to deliver the card or the PIN. CardOrderItemDeliveryStatus: + type: object additionalProperties: false properties: errorMessage: - description: An error message. type: string + description: An error message. status: + type: string description: The status of the PIN delivery. enum: - created @@ -6101,95 +6774,94 @@ components: - rejected - shipped - unknown - type: string trackingNumber: - description: The tracking number of the PIN delivery. type: string - type: object + description: The tracking number of the PIN delivery. ContactDetails: - deprecated: true + type: object additionalProperties: false + deprecated: true properties: address: - description: The address of the account holder. $ref: '#/components/schemas/Address' + description: The address of the account holder. email: + type: string description: The email address of the account holder. - type: string phone: - description: The phone number of the account holder. $ref: '#/components/schemas/Phone' + description: The phone number of the account holder. webAddress: - description: The URL of the account holder's website. type: string + description: The URL of the account holder's website. required: + - address - email - phone - - address - type: object Counterparty: + type: object additionalProperties: false properties: bankAccount: - description: Contains information about the bank account. $ref: '#/components/schemas/BankAccount' + description: Contains information about the bank account. transferInstrumentId: - description: The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). type: string - type: object + description: The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). CounterpartyBankRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: + type: array description: The list of counterparty bank institutions to be evaluated. items: $ref: '#/components/schemas/BankIdentification' - type: array required: - operation - type: object CounterpartyTypesRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: + type: array description: The list of counterparty types to be evaluated. items: + type: string enum: - balanceAccount - bankAccount - card - transferInstrument - type: string - type: array required: - operation - type: object CountriesRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: + type: array description: List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. items: type: string - type: array required: - operation - type: object CreateSweepConfigurationV2: + type: object additionalProperties: false properties: category: - x-addedInVersion: '2' + type: string description: "The type of transfer that results from the sweep.\n\nPossible\ \ values:\n\n - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).\n\ \n- **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id)\ @@ -6198,32 +6870,32 @@ components: - bank - internal - platformPayment - type: string + x-addedInVersion: '2' counterparty: + $ref: '#/components/schemas/SweepCounterparty' description: 'The destination or the source of the funds, depending on the sweep `type`. Either a `balanceAccountId`, `transferInstrumentId`, or `merchantAccount` is required.' - $ref: '#/components/schemas/SweepCounterparty' currency: + type: string description: 'The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).' - type: string description: + type: string description: 'The message that will be used in the sweep transfer''s description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters.' - type: string priorities: - x-addedInVersion: '2' + type: array description: 'The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the @@ -6260,6 +6932,7 @@ components: setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).' items: + type: string enum: - crossBorder - fast @@ -6267,9 +6940,9 @@ components: - internal - regular - wire - type: string - type: array + x-addedInVersion: '2' reason: + type: string description: The reason for disabling the sweep. enum: - accountHierarchyNotActive @@ -6287,6 +6960,7 @@ components: - directDebitNotSupported - error - notEnoughBalance + - pending - pendingApproval - pendingExecution - refusedByCounterpartyBank @@ -6296,26 +6970,26 @@ components: - transferInstrumentDoesNotExist - unknown readOnly: true - type: string reasonDetail: + type: string description: The human readable reason for disabling the sweep. readOnly: true - type: string reference: + type: string description: Your reference for the sweep configuration. maxLength: 80 - type: string referenceForBeneficiary: + type: string description: The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. maxLength: 80 - type: string schedule: + $ref: '#/components/schemas/SweepSchedule' description: The schedule when the `triggerAmount` is evaluated. If the balance meets the threshold, funds are pushed out of or pulled in to the balance account. - $ref: '#/components/schemas/SweepSchedule' status: + type: string description: "The status of the sweep. If not provided, by default, this\ \ is set to **active**.\n\nPossible values: \n\n * **active**: the sweep\ \ is enabled and funds will be pulled in or pushed out based on the defined\ @@ -6324,17 +6998,17 @@ components: enum: - active - inactive - type: string sweepAmount: + $ref: '#/components/schemas/Amount' description: The amount that must be pushed out or pulled in. You can configure either `sweepAmount` or `targetAmount`, not both. - $ref: '#/components/schemas/Amount' targetAmount: + $ref: '#/components/schemas/Amount' description: The amount that must be available in the balance account after the sweep. You can configure either `sweepAmount` or `targetAmount`, not both. - $ref: '#/components/schemas/Amount' triggerAmount: + $ref: '#/components/schemas/Amount' description: 'The threshold amount that triggers the sweep. If not provided, by default, the amount is set to zero. The `triggerAmount` is evaluated according to the specified `schedule.type`. @@ -6346,8 +7020,8 @@ components: * For `type` **push**, if the balance is more than or equal to the `triggerAmount`, funds are pushed out of the balance account.' - $ref: '#/components/schemas/Amount' type: + type: string default: push description: "The direction of sweep, whether pushing out or pulling in\ \ funds to the balance account. If not provided, by default, this is set\ @@ -6358,45 +7032,45 @@ components: enum: - pull - push - type: string required: - - schedule - - currency - counterparty - type: object + - currency + - schedule DKLocalAccountIdentification: + type: object additionalProperties: false properties: accountNumber: + type: string description: The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). maxLength: 10 minLength: 4 - type: string bankCode: + type: string description: The 4-digit bank code (Registreringsnummer) (without separators or whitespace). maxLength: 4 minLength: 4 - type: string type: + type: string default: dkLocal description: '**dkLocal**' enum: - dkLocal - type: string required: - - type - accountNumber - bankCode - type: object + - type DayOfWeekRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: + type: array description: 'List of days of the week. @@ -6406,6 +7080,7 @@ components: ' items: + type: string enum: - friday - monday @@ -6414,52 +7089,51 @@ components: - thursday - tuesday - wednesday - type: string - type: array required: - operation - type: object DelegatedAuthenticationData: + type: object additionalProperties: false properties: sdkOutput: + type: string description: A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. maxLength: 20000 - type: string required: - sdkOutput - type: object DeliveryAddress: + type: object additionalProperties: false properties: city: - description: The name of the city. type: string + description: The name of the city. country: + type: string description: 'The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don''t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`.' - type: string line1: + type: string description: 'The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**.' - type: string line2: + type: string description: 'The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**.' - type: string line3: - description: Additional information about the delivery address. type: string + description: Additional information about the delivery address. postalCode: + type: string description: 'The postal code. Maximum length: @@ -6467,63 +7141,63 @@ components: * 5 digits for an address in the US. * 10 characters for an address in all other countries.' - type: string stateOrProvince: + type: string description: 'The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.' - type: string required: - country - type: object DeliveryContact: + type: object additionalProperties: false properties: address: - description: The address of the contact. $ref: '#/components/schemas/DeliveryAddress' + description: The address of the contact. company: - x-addedInVersion: '2' + type: string description: The company name of the contact. - type: string + x-addedInVersion: '2' email: - description: The email address of the contact. type: string + description: The email address of the contact. fullPhoneNumber: + type: string description: 'The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** "0031 6 11 22 33 44", "+316/1122-3344", "(0031) 611223344"' - type: string name: - description: The name of the contact. $ref: '#/components/schemas/Name' + description: The name of the contact. phoneNumber: - description: The phone number of the contact. $ref: '#/components/schemas/PhoneNumber' + description: The phone number of the contact. webAddress: - description: The URL of the contact's website. type: string + description: The URL of the contact's website. required: - - name - address - type: object + - name Device: + type: object additionalProperties: false properties: id: - description: The unique identifier of the SCA device. type: string + description: The unique identifier of the SCA device. name: + type: string description: The name of the SCA device. You can show this name to your user to help them identify the device. - type: string paymentInstrumentId: + type: string description: The unique identifier of the payment instrument that is associated with the SCA device. - type: string type: + type: string description: 'The type of device. @@ -6532,55 +7206,55 @@ components: - ios - android - browser - type: string - type: object DeviceInfo: + type: object additionalProperties: false properties: cardCaptureTechnology: + type: string description: The technology used to capture the card details. - type: string deviceName: + type: string description: The name of the device. - type: string formFactor: + type: string description: The form factor of the device to be provisioned. - type: string imei: - description: The IMEI number of the device being provisioned. type: string + description: The IMEI number of the device being provisioned. isoDeviceType: + type: string description: The 2-digit device type provided on the ISO messages that the token is being provisioned to. - type: string msisdn: + type: string description: The MSISDN of the device being provisioned. - type: string osName: + type: string description: The name of the device operating system. - type: string osVersion: - description: The version of the device operating system. type: string + description: The version of the device operating system. paymentTypes: + type: array description: Different types of payments supported for the network token. items: type: string - type: array serialNumber: + type: string description: The serial number of the device. - type: string storageTechnology: - description: The architecture or technology used for network token storage. type: string - type: object + description: The architecture or technology used for network token storage. DifferentCurrenciesRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: + type: boolean description: 'Checks the currency of the payment against the currency of the payment instrument. @@ -6596,14 +7270,14 @@ components: ' - type: boolean required: - operation - type: object Duration: + type: object additionalProperties: false properties: unit: + type: string description: 'The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. @@ -6615,23 +7289,23 @@ components: - minutes - months - weeks - type: string value: + type: integer + format: int32 description: 'The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months.' - format: int32 - type: integer - type: object EntryModesRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: + type: array description: 'List of point-of-sale entry modes. @@ -6641,6 +7315,7 @@ components: ' items: + type: string enum: - barcode - chip @@ -6651,47 +7326,46 @@ components: - ocr - server - unknown - type: string - type: array required: - operation - type: object Expiry: + type: object additionalProperties: false properties: month: + type: string description: The month in which the card will expire. - type: string year: - description: The year in which the card will expire. type: string - type: object + description: The year in which the card will expire. Fee: + type: object additionalProperties: false properties: amount: - description: An object containing the fee amount. $ref: '#/components/schemas/Amount' + description: An object containing the fee amount. required: - amount - type: object GetNetworkTokenResponse: + type: object additionalProperties: false properties: token: - description: The details of the network token. $ref: '#/components/schemas/NetworkToken' + description: The details of the network token. required: - token - type: object GetTaxFormResponse: + type: object additionalProperties: false properties: content: - description: The content of the tax form in Base64 format. - format: byte type: string + format: byte + description: The content of the tax form in Base64 format. contentType: + type: string description: 'The content type of the tax form. @@ -6703,160 +7377,160 @@ components: ' enum: - application/pdf - type: string required: - content - type: object GrantLimit: + type: object additionalProperties: false properties: amount: - description: The amount available on the grant account. $ref: '#/components/schemas/Amount' - type: object + description: The amount available on the grant account. GrantOffer: + type: object additionalProperties: false properties: accountHolderId: + type: string description: The identifier of the account holder to which the grant is offered. - type: string amount: - description: The principal amount of the grant. $ref: '#/components/schemas/Amount' + description: The principal amount of the grant. contractType: + type: string description: 'The contract type of the grant offer. Possible value: **cashAdvance**, **loan**.' enum: - cashAdvance - loan - type: string expiresAt: + type: string + format: date-time description: The end date of the grant offer validity period. - format: date-time - type: string fee: - description: Details of the fee configuration. $ref: '#/components/schemas/Fee' + description: Details of the fee configuration. id: + type: string description: The unique identifier of the grant offer. - type: string repayment: - description: Details of the repayment configuration. $ref: '#/components/schemas/Repayment' + description: Details of the repayment configuration. startsAt: - description: The starting date of the grant offer validity period. - format: date-time type: string + format: date-time + description: The starting date of the grant offer validity period. required: - accountHolderId - type: object GrantOffers: + type: object additionalProperties: false properties: grantOffers: + type: array description: A list of available grant offers. items: $ref: '#/components/schemas/GrantOffer' - type: array required: - grantOffers - type: object HKLocalAccountIdentification: + type: object additionalProperties: false properties: accountNumber: + type: string description: The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. maxLength: 15 minLength: 9 - type: string clearingCode: + type: string description: The 3-digit clearing code, without separators or whitespace. maxLength: 3 minLength: 3 - type: string type: + type: string default: hkLocal description: '**hkLocal**' enum: - hkLocal - type: string required: - - type - accountNumber - clearingCode - type: object + - type HULocalAccountIdentification: + type: object additionalProperties: false properties: accountNumber: + type: string description: The 24-digit bank account number, without separators or whitespace. maxLength: 24 minLength: 24 - type: string type: + type: string default: huLocal description: '**huLocal**' enum: - huLocal - type: string required: - - type - accountNumber - type: object + - type Href: + type: object additionalProperties: false properties: href: type: string - type: object IbanAccountIdentification: + type: object additionalProperties: false properties: iban: + type: string description: The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. - type: string type: + type: string default: iban description: '**iban**' enum: - iban - type: string required: - - type - iban - type: object + - type IbanAccountIdentificationRequirement: + type: object additionalProperties: false properties: description: + type: string description: Specifies the allowed prefixes for the international bank account number as defined in the ISO-13616 standard. - type: string ibanPrefixes: + type: array description: 'Contains the list of allowed prefixes for international bank accounts. For example: NL, US, UK.' items: type: string - type: array type: + type: string default: ibanAccountIdentificationRequirement description: '**ibanAccountIdentificationRequirement**' enum: - ibanAccountIdentificationRequirement - type: string required: - type - type: object InternationalTransactionRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: + type: boolean description: 'Boolean indicating whether transaction is an international transaction. @@ -6871,216 +7545,215 @@ components: ' - type: boolean required: - operation - type: object InvalidField: - additionalProperties: false + type: object properties: - message: - description: Description of the validation error. - type: string name: + type: string description: The field that has an invalid value. - type: string value: - description: The invalid value. type: string + description: The invalid value. + message: + type: string + description: Description of the validation error. required: + - message - name - value - - message - type: object JSONObject: type: object Link: + type: object additionalProperties: false properties: first: + $ref: '#/components/schemas/Href' description: The link to the first page of the list. - $ref: '#/components/schemas/Href' last: + $ref: '#/components/schemas/Href' description: The link to the last page of the list. - $ref: '#/components/schemas/Href' next: + $ref: '#/components/schemas/Href' description: The link to the next page of the list. - $ref: '#/components/schemas/Href' previous: + $ref: '#/components/schemas/Href' description: The link to the previous page of the list. - $ref: '#/components/schemas/Href' self: - description: The link to the list page you are currently viewing. $ref: '#/components/schemas/Href' - type: object + description: The link to the list page you are currently viewing. ListNetworkTokensResponse: + type: object additionalProperties: false properties: networkTokens: + type: array description: List of network tokens. items: $ref: '#/components/schemas/NetworkToken' - type: array - type: object MatchingTransactionsRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: - description: The number of transactions. - format: int32 type: integer + format: int32 + description: The number of transactions. required: - operation - type: object MatchingValuesRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: + type: array items: + type: string enum: - acquirerId - amount - currency - merchantId - merchantName - type: string - type: array required: - operation - type: object MccsRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: + type: array description: List of merchant category codes (MCCs). items: type: string - type: array required: - operation - type: object MerchantAcquirerPair: + type: object additionalProperties: false properties: acquirerId: + type: string description: The acquirer ID. - type: string merchantId: - description: The merchant identification number (MID). type: string - type: object + description: The merchant identification number (MID). MerchantNamesRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: + type: array items: $ref: '#/components/schemas/StringMatch' - type: array required: - operation - type: object MerchantsRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: + type: array description: List of merchant ID and acquirer ID pairs. items: $ref: '#/components/schemas/MerchantAcquirerPair' - type: array required: - operation - type: object NOLocalAccountIdentification: + type: object additionalProperties: false properties: accountNumber: + type: string description: The 11-digit bank account number, without separators or whitespace. maxLength: 11 minLength: 11 - type: string type: + type: string default: noLocal description: '**noLocal**' enum: - noLocal - type: string required: - - type - accountNumber - type: object + - type NZLocalAccountIdentification: + type: object additionalProperties: false properties: accountNumber: + type: string description: The 15-16 digit bank account number. The first 2 digits are the bank number, the next 4 digits are the branch number, the next 7 digits are the account number, and the final 2-3 digits are the suffix. maxLength: 16 minLength: 15 - type: string type: + type: string default: nzLocal description: '**nzLocal**' enum: - nzLocal - type: string required: - - type - accountNumber - type: object + - type Name: + type: object additionalProperties: false properties: firstName: + type: string description: The first name. maxLength: 80 - type: string lastName: + type: string description: The last name. maxLength: 80 - type: string required: - firstName - lastName - type: object NetworkToken: + type: object additionalProperties: false properties: brandVariant: + type: string description: The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**. - type: string creationDate: + type: string + format: date-time description: Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2020-12-18T10:15:30+01:00**.. - format: date-time - type: string device: - description: Device details. $ref: '#/components/schemas/DeviceInfo' + description: Device details. id: - description: The unique identifier of the network token. type: string + description: The unique identifier of the network token. paymentInstrumentId: + type: string description: The unique identifier of the payment instrument to which this network token belongs to. - type: string status: + type: string description: 'The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**.' enum: @@ -7088,201 +7761,201 @@ components: - inactive - suspended - closed - type: string tokenLastFour: + type: string description: The last four digits of the network token `id`. - type: string type: - description: The type of network token. For example, **wallet**, **cof**. type: string - type: object + description: The type of network token. For example, **wallet**, **cof**. NumberAndBicAccountIdentification: + type: object additionalProperties: false properties: accountNumber: + type: string description: The bank account number, without separators or whitespace. The length and format depends on the bank or country. maxLength: 34 - type: string additionalBankIdentification: + $ref: '#/components/schemas/AdditionalBankIdentification' description: Additional identification codes of the bank. Some banks may require these identifiers for cross-border transfers. - $ref: '#/components/schemas/AdditionalBankIdentification' bic: + type: string description: The bank's 8- or 11-character BIC or SWIFT code. maxLength: 11 minLength: 8 - type: string type: + type: string default: numberAndBic description: '**numberAndBic**' enum: - numberAndBic - type: string required: - - type - accountNumber - bic - type: object + - type PLLocalAccountIdentification: + type: object additionalProperties: false properties: accountNumber: + type: string description: The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)), without separators or whitespace. maxLength: 26 minLength: 26 - type: string type: + type: string default: plLocal description: '**plLocal**' enum: - plLocal - type: string required: - - type - accountNumber - type: object + - type PaginatedAccountHoldersResponse: + type: object additionalProperties: false properties: accountHolders: + type: array description: List of account holders. items: $ref: '#/components/schemas/AccountHolder' - type: array hasNext: + type: boolean description: Indicates whether there are more items on the next page. - type: boolean hasPrevious: - description: Indicates whether there are more items on the previous page. type: boolean + description: Indicates whether there are more items on the previous page. required: - accountHolders - - hasPrevious - hasNext - type: object + - hasPrevious PaginatedBalanceAccountsResponse: + type: object additionalProperties: false properties: balanceAccounts: + type: array description: List of balance accounts. items: $ref: '#/components/schemas/BalanceAccountBase' - type: array hasNext: + type: boolean description: Indicates whether there are more items on the next page. - type: boolean hasPrevious: - description: Indicates whether there are more items on the previous page. type: boolean + description: Indicates whether there are more items on the previous page. required: - balanceAccounts - - hasPrevious - hasNext - type: object + - hasPrevious PaginatedGetCardOrderItemResponse: + type: object additionalProperties: false properties: data: + type: array description: List of card order items in the card order batch. items: $ref: '#/components/schemas/CardOrderItem' - type: array hasNext: + type: boolean description: Indicates whether there are more items on the next page. - type: boolean hasPrevious: - description: Indicates whether there are more items on the previous page. type: boolean + description: Indicates whether there are more items on the previous page. required: - data - - hasPrevious - hasNext - type: object + - hasPrevious PaginatedGetCardOrderResponse: + type: object additionalProperties: false properties: cardOrders: + type: array description: Contains objects with information about card orders. items: $ref: '#/components/schemas/CardOrder' - type: array hasNext: + type: boolean description: Indicates whether there are more items on the next page. - type: boolean hasPrevious: - description: Indicates whether there are more items on the previous page. type: boolean + description: Indicates whether there are more items on the previous page. required: - - hasPrevious - hasNext - type: object + - hasPrevious PaginatedPaymentInstrumentsResponse: + type: object additionalProperties: false properties: hasNext: + type: boolean description: Indicates whether there are more items on the next page. - type: boolean hasPrevious: - description: Indicates whether there are more items on the previous page. type: boolean + description: Indicates whether there are more items on the previous page. paymentInstruments: + type: array description: List of payment instruments associated with the balance account. items: $ref: '#/components/schemas/PaymentInstrument' - type: array required: - - paymentInstruments - - hasPrevious - hasNext - type: object + - hasPrevious + - paymentInstruments PaymentInstrument: + type: object additionalProperties: false properties: additionalBankAccountIdentifications: + type: array deprecated: true - x-deprecatedInVersion: '2' - x-deprecatedMessage: Please use `bankAccount` object instead description: Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. items: oneOf: - $ref: '#/components/schemas/IbanAccountIdentification' - type: array + x-deprecatedInVersion: '2' + x-deprecatedMessage: Please use `bankAccount` object instead balanceAccountId: + type: string description: The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. - type: string bankAccount: + $ref: '#/components/schemas/BankAccountDetails' description: Contains the business account details. Returned when you create a payment instrument with `type` **bankAccount**. - $ref: '#/components/schemas/BankAccountDetails' card: + $ref: '#/components/schemas/Card' description: Contains information about the card payment instrument. Returned when you create a payment instrument with `type` **card**. - $ref: '#/components/schemas/Card' description: + type: string description: Your description for the payment instrument, maximum 300 characters. maxLength: 300 - type: string id: - description: The unique identifier of the payment instrument. type: string + description: The unique identifier of the payment instrument. issuingCountryCode: + type: string description: The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. - type: string paymentInstrumentGroupId: + type: string description: The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. - type: string reference: + type: string description: Your reference for the payment instrument, maximum 150 characters. maxLength: 150 - type: string status: + type: string description: "The status of the payment instrument. If a status is not specified\ \ when creating a payment instrument, it is set to **active** by default.\ \ However, there can be exceptions for cards based on the `card.formFactor`\ @@ -7299,14 +7972,13 @@ components: - closed - inactive - suspended - type: string statusComment: - x-addedInVersion: '2' + type: string description: The status comment provides additional information for the statusReason of the payment instrument. - type: string - statusReason: x-addedInVersion: '2' + statusReason: + type: string description: 'The reason for the status of the payment instrument. @@ -7325,8 +7997,9 @@ components: - stolen - suspectedFraud - transactionRule - type: string + x-addedInVersion: '2' type: + type: string description: 'The type of payment instrument. @@ -7334,102 +8007,102 @@ components: enum: - bankAccount - card - type: string required: - balanceAccountId + - id - issuingCountryCode - type - - id - type: object PaymentInstrumentGroup: + type: object additionalProperties: false properties: balancePlatform: + type: string description: The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. - type: string description: + type: string description: Your description for the payment instrument group. maxLength: 300 - type: string id: - description: The unique identifier of the payment instrument group. type: string + description: The unique identifier of the payment instrument group. properties: + type: object additionalProperties: type: string description: Properties of the payment instrument group. - type: object reference: + type: string description: Your reference for the payment instrument group. maxLength: 150 - type: string txVariant: - description: The tx variant of the payment instrument group. type: string + description: The tx variant of the payment instrument group. required: - balancePlatform - txVariant - type: object PaymentInstrumentGroupInfo: + type: object additionalProperties: false properties: balancePlatform: + type: string description: The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. - type: string description: + type: string description: Your description for the payment instrument group. maxLength: 300 - type: string properties: + type: object additionalProperties: type: string description: Properties of the payment instrument group. - type: object reference: + type: string description: Your reference for the payment instrument group. maxLength: 150 - type: string txVariant: - description: The tx variant of the payment instrument group. type: string + description: The tx variant of the payment instrument group. required: - balancePlatform - txVariant - type: object PaymentInstrumentInfo: + type: object additionalProperties: false properties: balanceAccountId: + type: string description: The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. - type: string bankAccount: - description: Contains the business account details. $ref: '#/components/schemas/BankAccountModel' + description: Contains the business account details. card: + $ref: '#/components/schemas/CardInfo' description: Contains information about the card. Required when you create a payment instrument of `type` **card**. - $ref: '#/components/schemas/CardInfo' description: + type: string description: Your description for the payment instrument, maximum 300 characters. maxLength: 300 - type: string issuingCountryCode: + type: string description: The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. - type: string paymentInstrumentGroupId: + type: string description: The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. - type: string reference: + type: string description: Your reference for the payment instrument, maximum 150 characters. maxLength: 150 - type: string status: + type: string description: "The status of the payment instrument. If a status is not specified\ \ when creating a payment instrument, it is set to **active** by default.\ \ However, there can be exceptions for cards based on the `card.formFactor`\ @@ -7446,14 +8119,13 @@ components: - closed - inactive - suspended - type: string statusComment: - x-addedInVersion: '2' + type: string description: The status comment provides additional information for the statusReason of the payment instrument. - type: string - statusReason: x-addedInVersion: '2' + statusReason: + type: string description: 'The reason for the status of the payment instrument. @@ -7472,8 +8144,9 @@ components: - stolen - suspectedFraud - transactionRule - type: string + x-addedInVersion: '2' type: + type: string description: 'The type of payment instrument. @@ -7481,106 +8154,106 @@ components: enum: - bankAccount - card - type: string required: - balanceAccountId - issuingCountryCode - type - type: object PaymentInstrumentRequirement: + type: object additionalProperties: false properties: description: + type: string description: Specifies the requirements for the payment instrument that need to be included in the request for a particular route. - type: string issuingCountryCode: + type: string description: The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. - type: string issuingCountryCodes: + type: array description: The two-character ISO-3166-1 alpha-2 country code list for payment instruments. items: type: string - type: array onlyForCrossBalancePlatform: + type: boolean description: Specifies if the requirement only applies to transfers to another balance platform. - type: boolean paymentInstrumentType: + type: string description: The type of the payment instrument. For example, "BankAccount" or "Card". enum: - BankAccount - Card - type: string type: + type: string default: paymentInstrumentRequirement description: '**paymentInstrumentRequirement**' enum: - paymentInstrumentRequirement - type: string required: - type - type: object PaymentInstrumentRevealInfo: + type: object additionalProperties: false properties: cvc: + type: string description: The CVC2 value of the card. - type: string expiration: - description: The expiration date of the card. $ref: '#/components/schemas/Expiry' + description: The expiration date of the card. pan: - description: The primary account number (PAN) of the card. type: string + description: The primary account number (PAN) of the card. required: - - pan - - expiration - cvc - type: object + - expiration + - pan PaymentInstrumentRevealRequest: + type: object additionalProperties: false properties: encryptedKey: + type: string description: The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. - type: string paymentInstrumentId: + type: string description: The unique identifier of the payment instrument, which is the card for which you are managing the PIN. - type: string required: - - paymentInstrumentId - encryptedKey - type: object + - paymentInstrumentId PaymentInstrumentRevealResponse: + type: object additionalProperties: false properties: encryptedData: - description: The data encrypted using the `encryptedKey`. type: string + description: The data encrypted using the `encryptedKey`. required: - encryptedData - type: object PaymentInstrumentUpdateRequest: + type: object additionalProperties: false properties: balanceAccountId: + type: string description: 'The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status.' - type: string card: - description: Object that contains information about the card payment instrument. $ref: '#/components/schemas/CardInfo' + description: Object that contains information about the card payment instrument. status: + type: string description: "The status of the payment instrument. If a status is not specified\ \ when creating a payment instrument, it is set to **active** by default.\ \ However, there can be exceptions for cards based on the `card.formFactor`\ @@ -7597,15 +8270,14 @@ components: - closed - inactive - suspended - type: string statusComment: + type: string description: 'Comment for the status of the payment instrument. Required if `statusReason` is **other**.' - type: string statusReason: - x-addedInVersion: '2' + type: string description: 'The reason for updating the status of the payment instrument. @@ -7624,41 +8296,42 @@ components: - stolen - suspectedFraud - transactionRule - type: string - type: object + x-addedInVersion: '2' Phone: + type: object additionalProperties: false properties: number: + type: string description: "The full phone number provided as a single string. \nFor example,\ \ **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, \n\n or **\"(0031)\ \ 611223344\"**." - type: string type: + type: string description: "Type of phone number.\nPossible values: \n**Landline**, **Mobile**.\n" enum: - landline - mobile - type: string required: - number - type - type: object PhoneNumber: + type: object additionalProperties: false properties: phoneCountryCode: + type: string description: 'The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**.' - type: string phoneNumber: + type: string description: 'The phone number. The inclusion of the phone number country code is not necessary.' - type: string phoneType: + type: string description: 'The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**.' @@ -7667,36 +8340,36 @@ components: - Landline - Mobile - SIP - type: string - type: object PinChangeRequest: + type: object additionalProperties: false properties: encryptedKey: + type: string description: The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. - type: string encryptedPinBlock: - description: The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). type: string + description: The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). paymentInstrumentId: + type: string description: The unique identifier of the payment instrument, which is the card for which you are managing the PIN. - type: string token: - description: The 16-digit token that you used to generate the `encryptedPinBlock`. type: string + description: The 16-digit token that you used to generate the `encryptedPinBlock`. required: - - paymentInstrumentId - encryptedKey - - token - encryptedPinBlock - type: object + - paymentInstrumentId + - token PinChangeResponse: + type: object additionalProperties: false properties: status: + type: string description: 'The status of the request for PIN change. @@ -7705,14 +8378,15 @@ components: - completed - pending - unavailable - type: string required: - status - type: object PlatformPaymentConfiguration: + type: object additionalProperties: false properties: salesDayClosingTime: + type: string + format: time description: 'Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account. @@ -7722,9 +8396,9 @@ components: Default value: **"00:00"**.' - format: time - type: string settlementDelayDays: + type: integer + format: int32 description: 'Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. @@ -7742,16 +8416,15 @@ components: Default value: **null**.' - format: int32 - type: integer - type: object ProcessingTypesRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: + type: array description: 'List of processing types. @@ -7761,6 +8434,7 @@ components: ' items: + type: string enum: - atmWithdraw - balanceInquiry @@ -7770,328 +8444,327 @@ components: - recurring - token - unknown - type: string - type: array required: - operation - type: object PublicKeyResponse: + type: object additionalProperties: false properties: publicKey: + type: string description: The public key you need for encrypting a symmetric session key. - type: string publicKeyExpiryDate: - description: The expiry date of the public key. type: string + description: The expiry date of the public key. required: - publicKey - publicKeyExpiryDate - type: object RegisterSCAFinalResponse: + type: object additionalProperties: false properties: success: - description: Specifies if the registration was initiated successfully. type: boolean - type: object + description: Specifies if the registration was initiated successfully. RegisterSCARequest: + type: object additionalProperties: false properties: name: + type: string description: 'The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one.' - type: string paymentInstrumentId: + type: string description: The unique identifier of the payment instrument for which you are registering the SCA device. - type: string strongCustomerAuthentication: - description: Contains information required to register the SCA device. $ref: '#/components/schemas/DelegatedAuthenticationData' + description: Contains information required to register the SCA device. required: - paymentInstrumentId - strongCustomerAuthentication - type: object RegisterSCAResponse: + type: object additionalProperties: false properties: id: - description: The unique identifier of the SCA device you are registering. type: string + description: The unique identifier of the SCA device you are registering. paymentInstrumentId: + type: string description: The unique identifier of the payment instrument for which you are registering the SCA device. - type: string sdkInput: + type: string description: A string that you must pass to the authentication SDK to continue with the registration process. maxLength: 20000 - type: string success: - description: Specifies if the registration was initiated successfully. type: boolean - type: object + description: Specifies if the registration was initiated successfully. RemediatingAction: + type: object additionalProperties: false properties: code: + type: string description: The remediating action code. - type: string message: - description: A description of how you can resolve the verification error. type: string - type: object + description: A description of how you can resolve the verification error. Repayment: + type: object additionalProperties: false properties: basisPoints: + type: integer + format: int32 description: The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). - format: int32 - type: integer term: + $ref: '#/components/schemas/RepaymentTerm' description: An object containing the details of the configuration for repayment term. - $ref: '#/components/schemas/RepaymentTerm' threshold: - description: An object containing the details of the 30-day repayment threshold. $ref: '#/components/schemas/ThresholdRepayment' + description: An object containing the details of the 30-day repayment threshold. required: - basisPoints - type: object RepaymentTerm: + type: object additionalProperties: false properties: estimatedDays: - description: The estimated term for repaying the grant, in days. - format: int32 type: integer + format: int32 + description: The estimated term for repaying the grant, in days. maximumDays: + type: integer + format: int32 description: The maximum term for repaying the grant, in days. Only applies when `contractType` is **loan**. - format: int32 - type: integer required: - estimatedDays - type: object RestServiceError: + type: object additionalProperties: false properties: detail: + type: string description: A human-readable explanation specific to this occurrence of the problem. - type: string errorCode: - description: A code that identifies the problem type. type: string + description: A code that identifies the problem type. instance: + type: string description: A unique URI that identifies the specific occurrence of the problem. - type: string invalidFields: + type: array description: Detailed explanation of each validation error, when applicable. items: $ref: '#/components/schemas/InvalidField' - type: array requestId: + type: string description: A unique reference for the request, essentially the same as `pspReference`. - type: string response: - description: JSON response payload. $ref: '#/components/schemas/JSONObject' + description: JSON response payload. status: - description: The HTTP status code. - format: int32 type: integer + format: int32 + description: The HTTP status code. title: - description: A short, human-readable summary of the problem type. type: string + description: A short, human-readable summary of the problem type. type: + type: string description: A URI that identifies the problem type, pointing to human-readable documentation on this problem type. - type: string required: - - type - - errorCode - - title - detail + - errorCode - status - type: object + - title + - type RevealPinRequest: + type: object additionalProperties: false properties: encryptedKey: + type: string description: The symmetric session key that you encrypted with the [public key](https://docs.adyen.com/api-explorer/balanceplatform/2/get/publicKey) that you received from Adyen. - type: string paymentInstrumentId: + type: string description: The unique identifier of the payment instrument, which is the card for which you are managing the PIN. - type: string required: - - paymentInstrumentId - encryptedKey - type: object + - paymentInstrumentId RevealPinResponse: + type: object additionalProperties: false properties: encryptedPinBlock: + type: string description: The encrypted [PIN block](https://www.pcisecuritystandards.org/glossary/pin-block). - type: string token: - description: The 16-digit token that you need to extract the `encryptedPinBlock`. type: string + description: The 16-digit token that you need to extract the `encryptedPinBlock`. required: - encryptedPinBlock - token - type: object RiskScores: + type: object additionalProperties: false properties: mastercard: + type: integer + format: int32 description: Transaction risk score provided by Mastercard. Values provided by Mastercard range between 0 (lowest risk) to 998 (highest risk). - format: int32 - type: integer visa: + type: integer + format: int32 description: Transaction risk score provided by Visa. Values provided by Visa range between 01 (lowest risk) to 99 (highest risk). - format: int32 - type: integer - type: object RiskScoresRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: $ref: '#/components/schemas/RiskScores' required: - operation - type: object SELocalAccountIdentification: + type: object additionalProperties: false properties: accountNumber: + type: string description: The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)), without the clearing number, separators, or whitespace. maxLength: 10 minLength: 7 - type: string clearingNumber: + type: string description: The 4- to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)), without separators or whitespace. maxLength: 5 minLength: 4 - type: string type: + type: string default: seLocal description: '**seLocal**' enum: - seLocal - type: string required: - - type - accountNumber - clearingNumber - type: object + - type SGLocalAccountIdentification: + type: object additionalProperties: false properties: accountNumber: + type: string description: The 4- to 19-digit bank account number, without separators or whitespace. maxLength: 19 minLength: 4 - type: string bic: + type: string description: The bank's 8- or 11-character BIC or SWIFT code. maxLength: 11 minLength: 8 - type: string type: + type: string default: sgLocal description: '**sgLocal**' enum: - sgLocal - type: string required: - accountNumber - bic - type: object SameAmountRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: type: boolean required: - operation - type: object SameCounterpartyRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: type: boolean required: - operation - type: object SearchRegisteredDevicesResponse: + type: object additionalProperties: false properties: data: + type: array description: Contains a list of registered SCA devices and their corresponding details. items: $ref: '#/components/schemas/Device' - type: array itemsTotal: + type: integer + format: int32 description: The total amount of registered SCA devices that match the query parameters. - format: int32 - type: integer link: - description: Contains links to the list pages. $ref: '#/components/schemas/Link' + description: Contains links to the list pages. pagesTotal: - description: The total amount of list pages. - format: int32 type: integer - type: object + format: int32 + description: The total amount of list pages. SourceAccountTypesRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: + type: array description: The list of source account types to be evaluated. items: + type: string enum: - balanceAccount - businessAccount - type: string - type: array required: - operation - type: object StringMatch: + type: object additionalProperties: false properties: operation: + type: string description: 'The type of string matching operation. Possible values: **startsWith**, **endsWith**, **isEqualTo**, **contains**,' enum: @@ -8099,16 +8772,15 @@ components: - endsWith - isEqualTo - startsWith - type: string value: - description: The string to be matched. type: string - type: object + description: The string to be matched. SweepConfigurationV2: + type: object additionalProperties: false properties: category: - x-addedInVersion: '2' + type: string description: "The type of transfer that results from the sweep.\n\nPossible\ \ values:\n\n - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).\n\ \n- **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id)\ @@ -8117,36 +8789,36 @@ components: - bank - internal - platformPayment - type: string + x-addedInVersion: '2' counterparty: + $ref: '#/components/schemas/SweepCounterparty' description: 'The destination or the source of the funds, depending on the sweep `type`. Either a `balanceAccountId`, `transferInstrumentId`, or `merchantAccount` is required.' - $ref: '#/components/schemas/SweepCounterparty' currency: + type: string description: 'The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).' - type: string description: + type: string description: 'The message that will be used in the sweep transfer''s description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters.' - type: string id: + type: string description: The unique identifier of the sweep. readOnly: true - type: string priorities: - x-addedInVersion: '2' + type: array description: 'The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the @@ -8183,6 +8855,7 @@ components: setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).' items: + type: string enum: - crossBorder - fast @@ -8190,9 +8863,9 @@ components: - internal - regular - wire - type: string - type: array + x-addedInVersion: '2' reason: + type: string description: The reason for disabling the sweep. enum: - accountHierarchyNotActive @@ -8210,6 +8883,7 @@ components: - directDebitNotSupported - error - notEnoughBalance + - pending - pendingApproval - pendingExecution - refusedByCounterpartyBank @@ -8219,26 +8893,26 @@ components: - transferInstrumentDoesNotExist - unknown readOnly: true - type: string reasonDetail: + type: string description: The human readable reason for disabling the sweep. readOnly: true - type: string reference: + type: string description: Your reference for the sweep configuration. maxLength: 80 - type: string referenceForBeneficiary: + type: string description: The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. maxLength: 80 - type: string schedule: + $ref: '#/components/schemas/SweepSchedule' description: The schedule when the `triggerAmount` is evaluated. If the balance meets the threshold, funds are pushed out of or pulled in to the balance account. - $ref: '#/components/schemas/SweepSchedule' status: + type: string description: "The status of the sweep. If not provided, by default, this\ \ is set to **active**.\n\nPossible values: \n\n * **active**: the sweep\ \ is enabled and funds will be pulled in or pushed out based on the defined\ @@ -8247,17 +8921,17 @@ components: enum: - active - inactive - type: string sweepAmount: + $ref: '#/components/schemas/Amount' description: The amount that must be pushed out or pulled in. You can configure either `sweepAmount` or `targetAmount`, not both. - $ref: '#/components/schemas/Amount' targetAmount: + $ref: '#/components/schemas/Amount' description: The amount that must be available in the balance account after the sweep. You can configure either `sweepAmount` or `targetAmount`, not both. - $ref: '#/components/schemas/Amount' triggerAmount: + $ref: '#/components/schemas/Amount' description: 'The threshold amount that triggers the sweep. If not provided, by default, the amount is set to zero. The `triggerAmount` is evaluated according to the specified `schedule.type`. @@ -8269,8 +8943,8 @@ components: * For `type` **push**, if the balance is more than or equal to the `triggerAmount`, funds are pushed out of the balance account.' - $ref: '#/components/schemas/Amount' type: + type: string default: push description: "The direction of sweep, whether pushing out or pulling in\ \ funds to the balance account. If not provided, by default, this is set\ @@ -8281,30 +8955,30 @@ components: enum: - pull - push - type: string required: + - counterparty + - currency - id - schedule - - currency - - counterparty - type: object SweepCounterparty: + type: object additionalProperties: false properties: balanceAccountId: + type: string description: "The unique identifier of the destination or source [balance\ \ account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).\n\ \n > If you are updating the counterparty from a transfer instrument to\ \ a balance account, set `transferInstrumentId` to **null**." - type: string merchantAccount: + type: string description: 'The merchant account that will be the source of funds. You can only use this parameter with sweeps of `type` **pull** and if you are processing payments with Adyen.' - type: string transferInstrumentId: + type: string description: 'The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id) depending on the sweep `type` @@ -8320,12 +8994,12 @@ components: Contact Adyen Support to enable this feature.> If you are updating the counterparty from a balance account to a transfer instrument, set `balanceAccountId` to **null**.' - type: string - type: object SweepSchedule: + type: object additionalProperties: false properties: cronExpression: + type: string description: "A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression)\ \ that is used to set the sweep schedule. The schedule uses the time zone\ \ of the balance account. \nFor example, **30 17 * * MON** schedules a\ @@ -8336,8 +9010,8 @@ components: \ **MON-SUN**.\n\nThe following non-standard characters are supported:\ \ *****, **L**, **#**, **W** and **/**. See [crontab guru](https://crontab.guru/)\ \ for more examples.\n\nRequired when `type` is **cron**.\n" - type: string type: + type: string description: 'The schedule type. @@ -8365,78 +9039,77 @@ components: - monthly - balance - cron - type: string required: - type - type: object ThresholdRepayment: + type: object additionalProperties: false properties: amount: - description: The amount to be repaid on a 30-day basis. $ref: '#/components/schemas/Amount' + description: The amount to be repaid on a 30-day basis. required: - amount - type: object TimeOfDay: + type: object additionalProperties: false properties: endTime: + type: string description: 'The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. ' - type: string startTime: + type: string description: 'The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. ' - type: string - type: object TimeOfDayRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: $ref: '#/components/schemas/TimeOfDay' required: - operation - type: object TokenRequestorsRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: + type: array items: type: string - type: array required: - operation - type: object TotalAmountRestriction: + type: object additionalProperties: false properties: operation: - description: Defines how the condition must be evaluated. type: string + description: Defines how the condition must be evaluated. value: - description: The amount value and currency. $ref: '#/components/schemas/Amount' + description: The amount value and currency. required: - operation - type: object TransactionRule: + type: object additionalProperties: false properties: aggregationLevel: - x-addedInVersion: '2' + type: string description: 'The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) @@ -8449,33 +9122,33 @@ components: Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**.' - type: string + x-addedInVersion: '2' description: + type: string description: Your description for the transaction rule. maxLength: 300 - type: string endDate: + type: string description: 'The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**.' - type: string entityKey: - x-addedInVersion: '2' + $ref: '#/components/schemas/TransactionRuleEntityKey' description: The type and unique identifier of the resource to which the rule applies. - $ref: '#/components/schemas/TransactionRuleEntityKey' + x-addedInVersion: '2' id: - description: The unique identifier of the transaction rule. type: string + description: The unique identifier of the transaction rule. interval: + $ref: '#/components/schemas/TransactionRuleInterval' description: The [time interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) when the rule conditions apply. - $ref: '#/components/schemas/TransactionRuleInterval' outcomeType: - x-addedInVersion: '2' + type: string description: 'The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. @@ -8498,13 +9171,13 @@ components: - hardBlock - scoreBased - timedBlock - type: string + x-addedInVersion: '2' reference: + type: string description: Your reference for the transaction rule. maxLength: 150 - type: string requestType: - x-addedInVersion: '2' + type: string description: 'Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. @@ -8516,9 +9189,9 @@ components: - authorization - bankTransfer - tokenization - type: string - ruleRestrictions: x-addedInVersion: '2' + ruleRestrictions: + $ref: '#/components/schemas/TransactionRuleRestrictions' description: 'Contains one or more objects that define the [rule conditions](https://docs.adyen.com/issuing/transaction-rules#conditions). Each object must have a value and an operation which determines how the values must be evaluated. @@ -8526,29 +9199,30 @@ components: For example, a `countries` object can have a list of country codes **["US", "CA"]** in the `value` field and **anyMatch** in the `operation` field.' - $ref: '#/components/schemas/TransactionRuleRestrictions' - score: x-addedInVersion: '2' + score: + type: integer + format: int32 description: A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. - format: int32 - type: integer + x-addedInVersion: '2' startDate: + type: string description: "The date when the rule will start to be evaluated, in ISO\ \ 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**.\n\ \nIf not provided when creating a transaction rule, the `startDate` is\ \ set to the date when the rule status is set to **active**. \n\n" - type: string status: + type: string description: "The status of the transaction rule. If you provide a `startDate`\ \ in the request, the rule is automatically created \nwith an **active**\ \ status. \n\nPossible values: **active**, **inactive**." enum: - active - inactive - type: string type: + type: string description: "The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types),\ \ which defines if a rule blocks transactions based on individual characteristics\ \ or accumulates data.\n\nPossible values:\n * **blockList**: decline\ @@ -8563,34 +9237,33 @@ components: - blockList - maxUsage - velocity - type: string required: - - type - description - - reference - entityKey - interval + - reference - ruleRestrictions - type: object + - type TransactionRuleEntityKey: + type: object additionalProperties: false properties: entityReference: - description: The unique identifier of the resource. type: string + description: The unique identifier of the resource. entityType: + type: string description: 'The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**.' - type: string - type: object TransactionRuleInfo: + type: object additionalProperties: false properties: aggregationLevel: - x-addedInVersion: '2' + type: string description: 'The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) @@ -8603,30 +9276,30 @@ components: Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**.' - type: string + x-addedInVersion: '2' description: + type: string description: Your description for the transaction rule. maxLength: 300 - type: string endDate: + type: string description: 'The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**.' - type: string entityKey: - x-addedInVersion: '2' + $ref: '#/components/schemas/TransactionRuleEntityKey' description: The type and unique identifier of the resource to which the rule applies. - $ref: '#/components/schemas/TransactionRuleEntityKey' + x-addedInVersion: '2' interval: + $ref: '#/components/schemas/TransactionRuleInterval' description: The [time interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) when the rule conditions apply. - $ref: '#/components/schemas/TransactionRuleInterval' outcomeType: - x-addedInVersion: '2' + type: string description: 'The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. @@ -8649,13 +9322,13 @@ components: - hardBlock - scoreBased - timedBlock - type: string + x-addedInVersion: '2' reference: + type: string description: Your reference for the transaction rule. maxLength: 150 - type: string requestType: - x-addedInVersion: '2' + type: string description: 'Indicates the type of request to which the rule applies. If not provided, by default, this is set to **authorization**. @@ -8667,9 +9340,9 @@ components: - authorization - bankTransfer - tokenization - type: string - ruleRestrictions: x-addedInVersion: '2' + ruleRestrictions: + $ref: '#/components/schemas/TransactionRuleRestrictions' description: 'Contains one or more objects that define the [rule conditions](https://docs.adyen.com/issuing/transaction-rules#conditions). Each object must have a value and an operation which determines how the values must be evaluated. @@ -8677,29 +9350,30 @@ components: For example, a `countries` object can have a list of country codes **["US", "CA"]** in the `value` field and **anyMatch** in the `operation` field.' - $ref: '#/components/schemas/TransactionRuleRestrictions' - score: x-addedInVersion: '2' + score: + type: integer + format: int32 description: A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. - format: int32 - type: integer + x-addedInVersion: '2' startDate: + type: string description: "The date when the rule will start to be evaluated, in ISO\ \ 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**.\n\ \nIf not provided when creating a transaction rule, the `startDate` is\ \ set to the date when the rule status is set to **active**. \n\n" - type: string status: + type: string description: "The status of the transaction rule. If you provide a `startDate`\ \ in the request, the rule is automatically created \nwith an **active**\ \ status. \n\nPossible values: **active**, **inactive**." enum: - active - inactive - type: string type: + type: string description: "The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types),\ \ which defines if a rule blocks transactions based on individual characteristics\ \ or accumulates data.\n\nPossible values:\n * **blockList**: decline\ @@ -8714,27 +9388,26 @@ components: - blockList - maxUsage - velocity - type: string required: - - type - description - - reference - entityKey - interval + - reference - ruleRestrictions - type: object + - type TransactionRuleInterval: + type: object additionalProperties: false properties: dayOfMonth: - x-addedInVersion: '2' + type: integer + format: int32 description: The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month. - format: int32 - type: integer - dayOfWeek: x-addedInVersion: '2' + dayOfWeek: + type: string description: 'The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. @@ -8749,24 +9422,25 @@ components: - thursday - tuesday - wednesday - type: string - duration: x-addedInVersion: '2' + duration: + $ref: '#/components/schemas/Duration' description: The duration, which you can specify in hours, days, weeks, or months. The maximum duration is 90 days or an equivalent in other units. Required when the `type` is **rolling** or **sliding**. - $ref: '#/components/schemas/Duration' - timeOfDay: x-addedInVersion: '2' + timeOfDay: + type: string description: The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. - type: string - timeZone: x-addedInVersion: '2' + timeZone: + type: string description: The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**. - type: string + x-addedInVersion: '2' type: + type: string description: "The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals)\ \ during which the rule conditions and limits apply, and how often counters\ \ are reset.\n\nPossible values:\n * **perTransaction**: conditions are\ @@ -8789,42 +9463,42 @@ components: - rolling - sliding - weekly - type: string required: - type - type: object TransactionRuleResponse: + type: object additionalProperties: false properties: transactionRule: - description: The transaction rule. $ref: '#/components/schemas/TransactionRule' - type: object + description: The transaction rule. TransactionRuleRestrictions: + type: object additionalProperties: false properties: activeNetworkTokens: + $ref: '#/components/schemas/ActiveNetworkTokensRestriction' description: 'The total number of tokens that a card can have across different kinds of digital wallets on the user''s phones, watches, or other wearables. Supported operations: **equals**, **notEquals**, **greaterThanOrEqualTo**, **greaterThan**, **lessThanOrEqualTo**, **lessThan**.' - $ref: '#/components/schemas/ActiveNetworkTokensRestriction' brandVariants: + $ref: '#/components/schemas/BrandVariantsRestriction' description: 'List of card brand variants and the operation. Supported operations: **anyMatch**, **noneMatch**.' - $ref: '#/components/schemas/BrandVariantsRestriction' counterpartyBank: + $ref: '#/components/schemas/CounterpartyBankRestriction' description: 'Contains a list of counterparty financial institutions and how they must be evaluated. Supported operations: **anyMatch**, **noneMatch**.' - $ref: '#/components/schemas/CounterpartyBankRestriction' counterpartyTypes: + $ref: '#/components/schemas/CounterpartyTypesRestriction' description: 'Contains a list of counterparty types and how they must be evaluated. @@ -8841,45 +9515,45 @@ components: - **card** - **transferInstrument**' - $ref: '#/components/schemas/CounterpartyTypesRestriction' countries: + $ref: '#/components/schemas/CountriesRestriction' description: 'List of countries and the operation. Supported operations: **anyMatch**, **noneMatch**.' - $ref: '#/components/schemas/CountriesRestriction' dayOfWeek: + $ref: '#/components/schemas/DayOfWeekRestriction' description: 'List of week days and the operation. Supported operations: **anyMatch**, **noneMatch**.' - $ref: '#/components/schemas/DayOfWeekRestriction' differentCurrencies: + $ref: '#/components/schemas/DifferentCurrenciesRestriction' description: 'Compares the currency of the payment against the currency of the payment instrument, and specifies the operation. Supported operations: **equals**, **notEquals**.' - $ref: '#/components/schemas/DifferentCurrenciesRestriction' entryModes: + $ref: '#/components/schemas/EntryModesRestriction' description: 'List of point-of-sale entry modes and the operation.. Supported operations: **anyMatch**, **noneMatch**.' - $ref: '#/components/schemas/EntryModesRestriction' internationalTransaction: + $ref: '#/components/schemas/InternationalTransactionRestriction' description: 'Indicates whether transaction is an international transaction and specifies the operation. Supported operations: **equals**, **notEquals**.' - $ref: '#/components/schemas/InternationalTransactionRestriction' matchingTransactions: + $ref: '#/components/schemas/MatchingTransactionsRestriction' description: 'The number of transactions and the operation. Supported operations: **equals**, **notEquals**, **greaterThanOrEqualTo**, **greaterThan**, **lessThanOrEqualTo**, **lessThan**.' - $ref: '#/components/schemas/MatchingTransactionsRestriction' matchingValues: + $ref: '#/components/schemas/MatchingValuesRestriction' description: 'Checks if a user has recently made multiple transfers with the specified values. @@ -8906,33 +9580,33 @@ components: - **amount** and **currency** - **merchantName**.' - $ref: '#/components/schemas/MatchingValuesRestriction' mccs: + $ref: '#/components/schemas/MccsRestriction' description: 'List of merchant category codes (MCCs) and the operation. Supported operations: **anyMatch**, **noneMatch**.' - $ref: '#/components/schemas/MccsRestriction' merchantNames: + $ref: '#/components/schemas/MerchantNamesRestriction' description: 'List of names that will be compared to the merchant name according to the matching type. Supported operations: **anyMatch**, **noneMatch**.' - $ref: '#/components/schemas/MerchantNamesRestriction' merchants: + $ref: '#/components/schemas/MerchantsRestriction' description: 'List of merchant ID and acquirer ID pairs, and the operation. Supported operations: **anyMatch**, **noneMatch**.' - $ref: '#/components/schemas/MerchantsRestriction' processingTypes: + $ref: '#/components/schemas/ProcessingTypesRestriction' description: 'List of processing types and the operation. Supported operations: **anyMatch**, **noneMatch**.' - $ref: '#/components/schemas/ProcessingTypesRestriction' riskScores: + $ref: '#/components/schemas/RiskScoresRestriction' description: 'Risk scores provided by specific sources. The same operation applies to all scores. @@ -8942,8 +9616,8 @@ components: Supported operations: **equals**, **notEquals**, **greaterThanOrEqualTo**, **greaterThan**, **lessThanOrEqualTo**, **lessThan**.' - $ref: '#/components/schemas/RiskScoresRestriction' sameAmountRestriction: + $ref: '#/components/schemas/SameAmountRestriction' description: 'Checks if a user has recently sent the same amount of funds in multiple transfers. @@ -8961,8 +9635,8 @@ components: Supported operation: **equals**.' - $ref: '#/components/schemas/SameAmountRestriction' sameCounterpartyRestriction: + $ref: '#/components/schemas/SameCounterpartyRestriction' description: 'Checks if a user has recently made multiple transfers to the same counterparty. @@ -8980,8 +9654,8 @@ components: Supported operations: **equals**.' - $ref: '#/components/schemas/SameCounterpartyRestriction' sourceAccountTypes: + $ref: '#/components/schemas/SourceAccountTypesRestriction' description: 'Contains a list of source account types and how they must be evaluated. @@ -8994,38 +9668,38 @@ components: - **balanceAccount** - **businessAccount**.' - $ref: '#/components/schemas/SourceAccountTypesRestriction' timeOfDay: + $ref: '#/components/schemas/TimeOfDayRestriction' description: 'A start and end time in a time-only ISO-8601 extended offset format. Supported operations: **equals**, **notEquals**.' - $ref: '#/components/schemas/TimeOfDayRestriction' tokenRequestors: + $ref: '#/components/schemas/TokenRequestorsRestriction' description: 'List of token requestor IDs and the operation. Supported operations: **anyMatch**, **noneMatch**.' - $ref: '#/components/schemas/TokenRequestorsRestriction' totalAmount: + $ref: '#/components/schemas/TotalAmountRestriction' description: 'The total amount and the operation. Supported operations: **equals**, **notEquals**, **greaterThanOrEqualTo**, **greaterThan**, **lessThanOrEqualTo**, **lessThan**.' - $ref: '#/components/schemas/TotalAmountRestriction' - type: object TransactionRulesResponse: + type: object additionalProperties: false properties: transactionRules: + type: array description: List of transaction rules. items: $ref: '#/components/schemas/TransactionRule' - type: array - type: object TransferRoute: + type: object additionalProperties: false properties: category: + type: string description: " The type of transfer.\n\n Possible values:\n\n - **bank**:\ \ Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id)\ \ or a bank account.\n" @@ -9039,16 +9713,16 @@ components: - platformPayment - topUp - upgrade - type: string country: + type: string description: The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. - type: string currency: + type: string description: The three-character ISO currency code of transfer. For example, **USD** or **EUR**. - type: string priority: + type: string description: 'The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: @@ -9081,8 +9755,8 @@ components: - internal - regular - wire - type: string requirements: + type: array description: A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements @@ -9095,42 +9769,43 @@ components: - $ref: '#/components/schemas/BankAccountIdentificationTypeRequirement' - $ref: '#/components/schemas/IbanAccountIdentificationRequirement' - $ref: '#/components/schemas/PaymentInstrumentRequirement' + - $ref: '#/components/schemas/USInstantPayoutAddressRequirement' - $ref: '#/components/schemas/USInternationalAchAddressRequirement' - type: array - type: object TransferRouteRequest: + type: object additionalProperties: false properties: balanceAccountId: + type: string description: 'The unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). Required if `counterparty` is **transferInstrumentId**.' - type: string balancePlatform: + type: string description: The unique identifier assigned to the balance platform associated with the account holder. - type: string category: + type: string description: " The type of transfer. Possible values:\n\n - **bank**: Transfer\ \ to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id)\ \ or a bank account.\n" enum: - bank - type: string counterparty: + $ref: '#/components/schemas/Counterparty' description: The recipient of the funds transfer. A bank account or a transfer instrument. - $ref: '#/components/schemas/Counterparty' country: + type: string description: "The two-character ISO-3166-1 alpha-2 country code of the counterparty.\ \ For example, **US** or **NL**.\n > Either `counterparty` or `country`\ \ field must be provided in a transfer route request." - type: string currency: + type: string description: The three-character ISO currency code of transfer. For example, **USD** or **EUR**. - type: string priorities: + type: array description: 'The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. @@ -9159,6 +9834,7 @@ components: * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).' items: + type: string enum: - crossBorder - fast @@ -9166,73 +9842,88 @@ components: - internal - regular - wire - type: string - type: array required: - balancePlatform - - currency - category - type: object + - currency TransferRouteResponse: + type: object additionalProperties: false properties: transferRoutes: + type: array description: List of available priorities for a transfer, along with requirements. Use this information to initiate a transfer. items: $ref: '#/components/schemas/TransferRoute' - type: array - type: object UKLocalAccountIdentification: + type: object additionalProperties: false properties: accountNumber: + type: string description: The 8-digit bank account number, without separators or whitespace. maxLength: 8 minLength: 8 - type: string sortCode: + type: string description: The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. maxLength: 6 minLength: 6 - type: string type: + type: string default: ukLocal description: '**ukLocal**' enum: - ukLocal - type: string required: - - type - accountNumber - sortCode + - type + USInstantPayoutAddressRequirement: type: object - USInternationalAchAddressRequirement: additionalProperties: false properties: description: + type: string + description: Specifies that you must provide complete street addresses for + the party and counterParty for transactions greater than USD 3000. + type: + type: string + default: usInstantPayoutAddressRequirement + description: '**usInstantPayoutAddressRequirement**' + enum: + - usInstantPayoutAddressRequirement + required: + - type + USInternationalAchAddressRequirement: + type: object + additionalProperties: false + properties: + description: + type: string description: Specifies that you must provide a complete street address for International ACH (IAT) transactions. - type: string type: + type: string default: usInternationalAchAddressRequirement description: '**usInternationalAchAddressRequirement**' enum: - usInternationalAchAddressRequirement - type: string required: - type - type: object USLocalAccountIdentification: + type: object additionalProperties: false properties: accountNumber: + type: string description: The bank account number, without separators or whitespace. maxLength: 18 minLength: 2 - type: string accountType: + type: string default: checking description: 'The bank account type. @@ -9241,28 +9932,28 @@ components: enum: - checking - savings - type: string routingNumber: + type: string description: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or whitespace. maxLength: 9 minLength: 9 - type: string type: + type: string default: usLocal description: '**usLocal**' enum: - usLocal - type: string required: - - type - accountNumber - routingNumber - type: object + - type UpdateNetworkTokenRequest: + type: object additionalProperties: false properties: status: + type: string description: 'The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed.' @@ -9270,54 +9961,54 @@ components: - active - suspended - closed - type: string - type: object UpdatePaymentInstrument: + type: object additionalProperties: false properties: additionalBankAccountIdentifications: + type: array deprecated: true - x-deprecatedInVersion: '2' - x-deprecatedMessage: Please use `bankAccount` object instead description: Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**. items: oneOf: - $ref: '#/components/schemas/IbanAccountIdentification' - type: array + x-deprecatedInVersion: '2' + x-deprecatedMessage: Please use `bankAccount` object instead balanceAccountId: + type: string description: The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. - type: string bankAccount: + $ref: '#/components/schemas/BankAccountDetails' description: Contains the business account details. Returned when you create a payment instrument with `type` **bankAccount**. - $ref: '#/components/schemas/BankAccountDetails' card: + $ref: '#/components/schemas/Card' description: Contains information about the card payment instrument. Returned when you create a payment instrument with `type` **card**. - $ref: '#/components/schemas/Card' description: + type: string description: Your description for the payment instrument, maximum 300 characters. maxLength: 300 - type: string id: - description: The unique identifier of the payment instrument. type: string + description: The unique identifier of the payment instrument. issuingCountryCode: + type: string description: The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. - type: string paymentInstrumentGroupId: + type: string description: The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. - type: string reference: + type: string description: Your reference for the payment instrument, maximum 150 characters. maxLength: 150 - type: string status: + type: string description: "The status of the payment instrument. If a status is not specified\ \ when creating a payment instrument, it is set to **active** by default.\ \ However, there can be exceptions for cards based on the `card.formFactor`\ @@ -9334,16 +10025,15 @@ components: - closed - inactive - suspended - type: string statusComment: - x-addedInVersion: '2' + type: string description: 'Comment for the status of the payment instrument. Required if `statusReason` is **other**.' - type: string - statusReason: x-addedInVersion: '2' + statusReason: + type: string description: 'The reason for the status of the payment instrument. @@ -9362,8 +10052,9 @@ components: - stolen - suspectedFraud - transactionRule - type: string + x-addedInVersion: '2' type: + type: string description: 'The type of payment instrument. @@ -9371,18 +10062,17 @@ components: enum: - bankAccount - card - type: string required: - balanceAccountId + - id - issuingCountryCode - type - - id - type: object UpdateSweepConfigurationV2: + type: object additionalProperties: false properties: category: - x-addedInVersion: '2' + type: string description: "The type of transfer that results from the sweep.\n\nPossible\ \ values:\n\n - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).\n\ \n- **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id)\ @@ -9391,36 +10081,36 @@ components: - bank - internal - platformPayment - type: string + x-addedInVersion: '2' counterparty: + $ref: '#/components/schemas/SweepCounterparty' description: 'The destination or the source of the funds, depending on the sweep `type`. Either a `balanceAccountId`, `transferInstrumentId`, or `merchantAccount` is required.' - $ref: '#/components/schemas/SweepCounterparty' currency: + type: string description: 'The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).' - type: string description: + type: string description: 'The message that will be used in the sweep transfer''s description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters.' - type: string id: + type: string description: The unique identifier of the sweep. readOnly: true - type: string priorities: - x-addedInVersion: '2' + type: array description: 'The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the @@ -9457,6 +10147,7 @@ components: setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).' items: + type: string enum: - crossBorder - fast @@ -9464,9 +10155,9 @@ components: - internal - regular - wire - type: string - type: array + x-addedInVersion: '2' reason: + type: string description: The reason for disabling the sweep. enum: - accountHierarchyNotActive @@ -9484,6 +10175,7 @@ components: - directDebitNotSupported - error - notEnoughBalance + - pending - pendingApproval - pendingExecution - refusedByCounterpartyBank @@ -9493,26 +10185,26 @@ components: - transferInstrumentDoesNotExist - unknown readOnly: true - type: string reasonDetail: + type: string description: The human readable reason for disabling the sweep. readOnly: true - type: string reference: + type: string description: Your reference for the sweep configuration. maxLength: 80 - type: string referenceForBeneficiary: + type: string description: The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. maxLength: 80 - type: string schedule: + $ref: '#/components/schemas/SweepSchedule' description: The schedule when the `triggerAmount` is evaluated. If the balance meets the threshold, funds are pushed out of or pulled in to the balance account. - $ref: '#/components/schemas/SweepSchedule' status: + type: string description: "The status of the sweep. If not provided, by default, this\ \ is set to **active**.\n\nPossible values: \n\n * **active**: the sweep\ \ is enabled and funds will be pulled in or pushed out based on the defined\ @@ -9521,17 +10213,17 @@ components: enum: - active - inactive - type: string sweepAmount: + $ref: '#/components/schemas/Amount' description: The amount that must be pushed out or pulled in. You can configure either `sweepAmount` or `targetAmount`, not both. - $ref: '#/components/schemas/Amount' targetAmount: + $ref: '#/components/schemas/Amount' description: The amount that must be available in the balance account after the sweep. You can configure either `sweepAmount` or `targetAmount`, not both. - $ref: '#/components/schemas/Amount' triggerAmount: + $ref: '#/components/schemas/Amount' description: 'The threshold amount that triggers the sweep. If not provided, by default, the amount is set to zero. The `triggerAmount` is evaluated according to the specified `schedule.type`. @@ -9543,8 +10235,8 @@ components: * For `type` **push**, if the balance is more than or equal to the `triggerAmount`, funds are pushed out of the balance account.' - $ref: '#/components/schemas/Amount' type: + type: string default: push description: "The direction of sweep, whether pushing out or pulling in\ \ funds to the balance account. If not provided, by default, this is set\ @@ -9555,14 +10247,15 @@ components: enum: - pull - push - type: string - type: object VerificationDeadline: + type: object additionalProperties: false properties: capabilities: + type: array description: The names of the capabilities to be disallowed. items: + type: string enum: - acceptExternalFunding - acceptPspFunding @@ -9619,33 +10312,33 @@ components: - withdrawFromAtmInRestrictedCountries - withdrawFromAtmInRestrictedCountriesCommercial - withdrawFromAtmInRestrictedCountriesConsumer - type: string readOnly: true - type: array entityIds: + type: array description: The unique identifiers of the bank account(s) that the deadline applies to items: type: string readOnly: true - type: array expiresAt: + type: string + format: date-time description: The date that verification is due by before capabilities are disallowed. - format: date-time readOnly: true - type: string required: - - expiresAt - capabilities - type: object + - expiresAt VerificationError: + type: object additionalProperties: false properties: capabilities: + type: array description: Contains the capabilities that the verification error applies to. items: + type: string enum: - acceptExternalFunding - acceptPspFunding @@ -9702,41 +10395,41 @@ components: - withdrawFromAtmInRestrictedCountries - withdrawFromAtmInRestrictedCountriesCommercial - withdrawFromAtmInRestrictedCountriesConsumer - type: string - type: array code: + type: string description: The verification error code. - type: string message: - description: A description of the error. type: string + description: A description of the error. remediatingActions: + type: array description: Contains the actions that you can take to resolve the verification error. items: $ref: '#/components/schemas/RemediatingAction' - type: array subErrors: + type: array description: Contains more granular information about the verification error. items: $ref: '#/components/schemas/VerificationError-recursive' - type: array type: + type: string description: "The type of error.\n\n Possible values: **invalidInput**,\ \ **dataMissing**." enum: - dataMissing - invalidInput - pendingStatus - type: string - type: object VerificationError-recursive: + type: object additionalProperties: false properties: capabilities: + type: array description: Contains the capabilities that the verification error applies to. items: + type: string enum: - acceptExternalFunding - acceptPspFunding @@ -9793,42 +10486,335 @@ components: - withdrawFromAtmInRestrictedCountries - withdrawFromAtmInRestrictedCountriesCommercial - withdrawFromAtmInRestrictedCountriesConsumer - type: string - type: array code: + type: string description: The verification error code. - type: string message: - description: A description of the error. type: string + description: A description of the error. type: + type: string description: "The type of error.\n\n Possible values: **invalidInput**,\ \ **dataMissing**." enum: - dataMissing - invalidInput - pendingStatus - type: string remediatingActions: + type: array description: Contains the actions that you can take to resolve the verification error. items: $ref: '#/components/schemas/RemediatingAction' - type: array - required: [] + BalanceWebhookSettingsRequest: type: object - securitySchemes: - ApiKeyAuth: - in: header - name: X-API-Key - type: apiKey - BasicAuth: - scheme: basic - type: http - clientKey: - in: query - name: clientKey - type: apiKey + properties: + conditions: + type: array + description: The array of conditions a balance change must meet for Adyen + to send the webhook. + items: + $ref: '#/components/schemas/Condition' + maxItems: 20 + minItems: 0 + currency: + type: string + description: The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) + of the balance. + status: + type: string + description: 'The status of the webhook setting. Possible values: + + + * **active**: You receive a balance webhook if any of the conditions in + this setting are met. + + * **inactive**: You do not receive a balance webhook even if the conditions + in this settings are met.' + enum: + - active + - inactive + target: + $ref: '#/components/schemas/Target' + description: The type and ID of the resource about whose balance changes + you want to be notified. + type: + type: string + description: The type of the webhook you are configuring. Set to **balance**. + enum: + - balance + required: + - currency + - status + - target + - type + Condition: + type: object + properties: + balanceType: + type: string + description: 'Define the type of balance about which you want to get notified. + Possible values: + + + * **available**: the balance available for use. + + + * **balance**: the sum of transactions that have already been settled. + + + * **pending**: the sum of transactions that will be settled in the future. + + + * **reserved**: the balance currently held in reserve.' + enum: + - balance + - available + - pending + - reserved + conditionType: + type: string + description: 'Define when you want to get notified about a balance change. + Possible values: + + + * **greaterThan**: the balance in the account(s) exceeds the specified + `value`. + + + * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds + the specified `value`. + + + * **lessThan**: the balance in the account(s) drops below the specified + `value`. + + + * **lessThanOrEqual**: the balance in the account(s) reaches to drops + below the specified `value`.' + enum: + - greaterThan + - greaterThanOrEqual + - lessThan + - lessThanOrEqual + value: + type: integer + format: int64 + description: The value limit in the specified balance type and currency, + in minor units. + required: + - balanceType + - conditionType + - value + SettingStatus: + type: string + x-extensible-enum: + - active + - inactive + Target: + type: object + properties: + id: + type: string + description: 'The unique identifier of the `target.type`. This can be the + ID of your: + + + * balance platform + + * account holder + + * account holder''s balance account' + type: + type: string + description: 'The resource for which you want to receive notifications. + Possible values: + + + * **balancePlatform**: receive notifications about balance changes in + your entire balance platform. + + + * **accountHolder**: receive notifications about balance changes of a + specific user. + + + * **balanceAccount**: receive notifications about balance changes in a + specific balance account.' + enum: + - balanceAccount + - accountHolder + - balancePlatform + required: + - id + - type + BalanceWebhookSettingsResponse: + type: object + allOf: + - $ref: '#/components/schemas/WebhookSettingResponse' + - type: object + properties: + conditions: + type: array + description: The list of settings and criteria for triggering the [balance + webhook](https://docs.adyen.com/api-explorer/balance-webhooks/latest/post/balancePlatform.balanceAccount.balance.updated). + items: + $ref: '#/components/schemas/Condition' + required: + - currency + - id + - status + - target + - type + SettingType: + type: string + enum: + - balance + WebhookSettingResponse: + type: object + discriminator: + propertyName: type + mapping: + balance: '#/components/schemas/BalanceWebhookSettingsResponse' + properties: + currency: + type: string + description: The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) + of the balance. + id: + type: string + description: The unique identifier of the webhook setting. + status: + $ref: '#/components/schemas/SettingStatus' + description: 'The status of the webhook setting. Possible values: + + + * **active**: You receive a balance webhook if any of the conditions in + this setting are met. + + * **inactive**: You do not receive a balance webhook even if the conditions + in this settings are met.' + target: + $ref: '#/components/schemas/Target' + description: The resource about whose balance change you want to get notified. + type: + $ref: '#/components/schemas/SettingType' + description: The type of the webhook setting. + required: + - currency + - id + - status + - target + - type + DefaultErrorResponseEntity: + type: object + description: Standardized error response following RFC-7807 format + externalDocs: + url: https://www.rfc-editor.org/rfc/rfc7807 + properties: + detail: + type: string + description: A human-readable explanation specific to this occurrence of + the problem. + errorCode: + type: string + description: Unique business error code. + instance: + type: string + description: A URI that identifies the specific occurrence of the problem + if applicable. + invalidFields: + type: array + description: Array of fields with validation errors when applicable. + items: + $ref: '#/components/schemas/InvalidField' + requestId: + type: string + description: The unique reference for the request. + status: + type: integer + format: int32 + description: The HTTP status code. + title: + type: string + description: A short, human-readable summary of the problem type. + type: + type: string + description: A URI that identifies the validation error type. It points + to human-readable documentation for the problem type. + PatchableBalanceWebhookSettingsRequest: + type: object + properties: + conditions: + type: + - array + - 'null' + description: The array of conditions a balance change must meet for Adyen + to send the webhook. + items: + $ref: '#/components/schemas/Condition' + maxItems: 20 + minItems: 0 + currency: + type: string + description: The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) + of the balance. + status: + type: string + description: 'The status of the webhook setting. Possible values: + + + * **active**: You receive a balance webhook if any of the conditions in + this setting are met. + + * **inactive**: You do not receive a balance webhook even if the conditions + in this settings are met.' + enum: + - active + - inactive + target: + $ref: '#/components/schemas/PatchableTarget' + description: The type and ID of the resource about whose balance changes + you want to be notified. + type: + type: string + description: The type of the webhook you are configuring. Set to **balance**. + enum: + - balance + PatchableTarget: + type: object + properties: + id: + type: string + description: 'The unique identifier of the `target.type`. This can be the + ID of your: + + + * balance platform + + * account holder + + * account holder''s balance account' + type: + type: string + description: 'The resource for which you want to receive notifications. + Possible values: + + + * **balancePlatform**: receive notifications about balance changes in + your entire balance platform. + + + * **accountHolder**: receive notifications about balance changes of a + specific user. + + + * **balanceAccount**: receive notifications about balance changes in a + specific balance account.' + enum: + - balanceAccount + - accountHolder + - balancePlatform examples: delete-transactionRules-transactionRuleId-success-200: summary: Transaction rule deleted @@ -11274,3 +12260,15 @@ components: value: '121000567' message: Invalid routing number. errorCode: '33_01' + securitySchemes: + ApiKeyAuth: + type: apiKey + name: X-API-Key + in: header + BasicAuth: + type: http + scheme: basic + clientKey: + type: apiKey + name: clientKey + in: query